Hmm how to make call back with parameter?
I get this work:
void DoAct()
{
DOVirtual.DelayedCall(attackMoveSpeed, moveBack, false);
}
void moveBack()
{
transform.DOMove(attackStartLocation, attackMoveSpeed);
}
I would like to do (But I bet compile error)
void DoAct(vector3 location)
{
DOVirtual.DelayedCall(attackMoveSpeed, moveBack(location), false);
}
void moveBack(vector3 location)
{
transform.DOMove(location, attackMoveSpeed);
}
also how to make call "inline" for example if I want just change boolean and does not want to do own method for it?
Something like: DOVirtual.DelayedCall(2.5f, isBusy = false, false);