예제 #1
0
파일: Unit.cs 프로젝트: Bullrich/BlueTools
        /// <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;
        }
예제 #2
0
 /// <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);
 }