/// <summary>Navigate to a point in the map evading all the unwalkable objects</summary> public void NavigateToPoint(Vector3 pathStart, Vector3 pathEnd) { if (_hasRequestedPath || pathEnd == Vector3.zero) { return; } PathRequestManager.RequestPath(pathStart, pathEnd, OnPathFound); _hasRequestedPath = true; }
/// <summary>Navigate to a point in the map evading all the unwalkable objects</summary> public void NavigateToPoint(Vector3 pathStart, Vector3 pathEnd) { PathRequestManager.RequestPath(pathStart, pathEnd, OnPathFound); }