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