void GotoNextPoint() { isResting = false; if (Rendezvous.IsLastPoint()) { // dead! enabled = false; return; } Rendezvous = Rendezvous.GetRendezvous(); // Set the agent to go to the currently selected destination. agent.destination = Rendezvous.position; anim.SetBool("GoSomePlace", true); }