示例#1
0
        private void InitState()
        {
            var stateData = GameStateCfg.GetConfig(versionMode, netMode);

            if (stateData == null)
            {
                CLog.LogError("没找版本模式为:" + versionMode + ",网络模式为:" + netMode + "的状态配置");
                return;
            }
            GameGlobalState = (StateContainerBase)CreateState(stateData);
            GameGlobalState._OnEnter();
        }
示例#2
0
 protected void InitState()
 {
     GameGlobalState = (StateContainerBase)CreateState(GameStateCfg.GameState);
     GameGlobalState._OnEnter();
 }