//框架消息入口 void OnFrameResp(ushort protocol, ushort subcmd, NPacket packet) { if (CUIManger.Instance.SceneType != enSceneType.SCENE_GAME) { return; } //if (_bReqQuit == true) return; switch (subcmd) { //游戏状态设置 case SubCmd.SUB_GF_OPTION: { packet.BeginRead(); CGameEngine.Instance.MySelf.GameStatus = packet.GetByte(); break; } case SubCmd.SUB_GF_SCENE: { OnGameSceneResp(CGameEngine.Instance.MySelf.GameStatus, packet); break; } } }