Example #1
0
 public void SetDestination(Vector3 destination)
 {
     if (pathAgent)
     {
         pathAgent.IsStopped = false;
         pathAgent.SetDestination(destination);
         pathFailed = false;
     }
     else
     {
         pathFailed = true;
     }
 }