so i am doing the course and i was wondering why we used an actionschduler?
if i added
GetComponent<Fighter>().Cancel();
inside my
private bool InteractWithMovement()
{
RaycastHit hit;
bool hasHit = Physics.Raycast(GetMouseRay(), out hit);
if (hasHit)
{
if (Input.GetMouseButton(0))
{
GetComponent<Fighter>().Cancel();
mover.StartMoveAction(hit.point);
}
return true;
}
return false;
}
on my playercontroller script works and is less complicated,
am i missing something that will be taught latter?