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