예제 #1
0
 protected virtual void OnStateFinished(NGNStateHandler _finishedState)
 {
     currentActiveStates.Remove(_finishedState);
     preferredState = GetPreferredState();
     _finishedState.UnSubscribe(_finishedState, OnStateFinished);
     BeginPreferredState();
 }
예제 #2
0
 public virtual void AddActiveState(NGNStateHandler _state)
 {
     currentActiveStates.Add(_state);
     preferredState = GetPreferredState();
     BeginPreferredState();
 }