Пример #1
0
 public List <Vector3> GetPathToDestination(Vector3 destination)
 {
     return(Grid.FindPathTo(transform.position, destination));
 }
Пример #2
0
 private void GoToDestination()
 {
     path = Grid.FindPathTo(transform.position, Destination.position);
     Debug.Log("GoToDestination Pass, path lenght: " + path.Count);
 }