public void CalculatePath(IPath path)
        {
            if (!(path is UnityPath))
            {
                throw new PathArgumentException();
            }

            UnityPath.CalculatePath(this.entityRoot.transform.position, path, _areaMask);
        }
        public virtual void PathTo(Vector3 target)
        {
            if (_path == null)
            {
                _path = UnityPath.CreatePath(target);
            }

            _path.Target = target;
            this.CalculatePath(_path);
            this.SetPath(_path);
        }
 public IPath CreatePath(Vector3 target)
 {
     return(UnityPath.CreatePath(target));
 }
Esempio n. 4
0
 public IPath CreatePath()
 {
     return(UnityPath.CreatePath());
 }
 public void CalculatePath(Vector3 start, Vector3 target, IPath path)
 {
     UnityPath.CalculatePath(start, target, _areaMask, path);
 }
 public void CalculatePath(Vector3 target, IPath path)
 {
     UnityPath.CalculatePath(this.entityRoot.transform.position, target, _areaMask, path);
 }