Hi,
i have been down so many rabbit holes with this it seems like such an easy fix but i am having no luck.
i have been getting an error " No overload for method ‘StartMoveAction’ takes 2 arguments" i have even reverted to exactly what is in the code given but i am still getting the same issue.
mover script
public void StartMoveAction(Vector3 destination)
{
GetComponent<ActionScheduler>().StartAction(this);
MoveTo(destination);
}
...
Playercontroller script
...
private bool InteractWithMovement()
{
Vector3 target;
bool hasHit = RaycastNavMesh(out target);
if (hasHit)
{
if (Input.GetMouseButton(0))
{
GetComponent<Mover>().StartMoveAction(target, 1f);
}
SetCursor(CursorType.Movement);
return true;
}
return false;
}
player controller
any help is really appreciated.
Thank you.