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));
 }
Exemple #3
0
 public IPath CreatePath()
 {
     return(UnityPath.CreatePath());
 }