Пример #1
0
    Init()
    {
        m_stateList   = new List <scr_state>();
        m_activeState = null;

        return;
    }
Пример #2
0
    SetState(int _id)
    {
        foreach (scr_state state in m_stateList)
        {
            if (state.ID == _id)
            {
                if (m_activeState != null)
                {
                    m_activeState.OnExit();
                }

                m_activeState = state;
                m_activeState.OnEnter();

                return;
            }
        }
        return;
    }
Пример #3
0
 AddState(scr_state _state)
 {
     m_stateList.Add(_state);
     return;
 }