Esempio n. 1
0
        public void UpdateSceneState()
        {
            if (m_state == null || m_state.isLoaded() == false)
            {
                return;
            }

            if (m_state.isRunning() == false)
            {
                m_state.SceneStateBegin();
            }

            m_state.SceneStateUpdate();
        }
Esempio n. 2
0
 public SceneController()
 {
     //初始状态为Login状态
     m_state = new LoginSceneState(this);
     m_state.SceneStateBegin();
 }