Exemple #1
0
 private void OnSearchEnd()
 {
     requesterCounts--;
     if (requesterCounts == 0)
     {
         pfState = PathfinderState.Idle;
         EventMgr.Instance.onPathfindRequesterCountZero.Invoke();
     }
 }
Exemple #2
0
 private void OnSearchBegin()
 {
     requesterCounts++;
     pfState = PathfinderState.Process;
     EventMgr.Instance.onPathUpdatingStart.Invoke();
 }