public List <Vector3> GetPathToDestination(Vector3 destination) { return(Grid.FindPathTo(transform.position, destination)); }
private void GoToDestination() { path = Grid.FindPathTo(transform.position, Destination.position); Debug.Log("GoToDestination Pass, path lenght: " + path.Count); }