예제 #1
0
        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);
        }
예제 #2
0
 // Use this for initialization
 protected override void Start()
 {
     _stateInfo = new StateInfo(getStateName(), this);
     base.Start();
 }
예제 #3
0
 // Use this for initialization
 protected override void Start()
 {
     _stateInfo = new StateInfo(STATE_NAME, this);
     base.Start();
 }