Init() { m_stateList = new List <scr_state>(); m_activeState = null; return; }
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; }
AddState(scr_state _state) { m_stateList.Add(_state); return; }