public bool PopSubState(StateInfo in_subState) { bool bToReturn = false; for (int i = 0; i < m_gameSubStates.Count; ++i) { if (m_gameSubStates[i] != null && in_subState.State != null && m_gameSubStates[i].State == in_subState.State) { // the state we want to pop is in the current game state list m_gameSubStatesToPop.Add(in_subState); bToReturn = true; break; } } return(bToReturn); }
// Use this for initialization protected override void Start() { _stateInfo = new StateInfo(getStateName(), this); base.Start(); }
// Use this for initialization protected override void Start() { _stateInfo = new StateInfo(STATE_NAME, this); base.Start(); }