예제 #1
0
 public void RefreshPath()
 {
     Debug.Log("RefreshPath");
     targetIndex = 0;
     if (path != null)
     {
         Array.Clear(path, 0, path.Length);
     }
     PathRequestMgr.RequestPath(transform.position, currnetTarget.position, OnPathFound);
 }
예제 #2
0
 void Start()
 {
     PathRequestMgr.RequestPath(transform.position, target.position, OnPathFound);
 }
예제 #3
0
 void Awake()
 {
     instance    = this;
     pathfinding = GetComponent <PathFindingTest>();
 }
예제 #4
0
 private void Awake()
 {
     requestMgr = GetComponent <PathRequestMgr>();
     grid       = GetComponent <Grid>();
 }
예제 #5
0
 public virtual void Start()
 {
     actor = GetComponent <Actor>();
     PathRequestMgr.RequestPath(transform.position, finalTarget.position, OnPathFound);
 }