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