public void SetPath(Vector2 endGridPosition) { path = seeker.CalculatePath(gridPosition, endGridPosition); targetGridPosition = endGridPosition; GetComponent <Animator>().SetBool("running", true); path.pathNodes.RemoveAt(0); if (gridPosition == targetGridPosition) { OnMovementComplete(); } }