public static void Reset() { playerGamingSyn = null; gameOperStartSyn = null; actionNotify = null; huSyn = null; finalSettleSyn = null; }
void OnGAMING_SYN(PacketBase msg) { if (msg.code == 0) { PlayerGamingSyn response = NetSerilizer.DeSerialize <PlayerGamingSyn>(msg.data); Game.Instance.state = GameState.Waitting; Debug.Log("===OnGAMING_SYN [" + GetWanfa(response.wanfa) + "]"); Game.MJMgr.targetFlag.gameObject.SetActive(false); RoomMgr.Reset(); RoomMgr.playerGamingSyn = response; Game.MJTable.roomNum.text = ""; Game.MJTable.baseScore.text = ""; if (!RoomMgr.IsSingeRoom()) { if (!RoomMgr.IsVipRoom()) { RoomConfigModel config = Game.Instance.GetRoomInfo(response.matchId); if (null != config) { Game.MJTable.baseScore.text = string.Format("底分:{0}", config.baseScore); Game.Instance.baseScore = config.baseScore; } } else { Game.MJTable.roomNum.text = string.Format("房间号:{0}", response.deskId); } } int col = RoomMgr.IsVip2Room() ? 10 : 6; Game.MJMgr.players[0].dropCardLayout.col = col; Game.MJMgr.players[1].dropCardLayout.col = col; Game.MJMgr.players[2].dropCardLayout.col = col; Game.MJMgr.players[3].dropCardLayout.col = col; if (Game.UIMgr.IsSceneActive(UIPage.PlayPage)) { EventDispatcher.DispatchEvent(MessageCommand.MJ_UpdatePlayPage); } else { Game.UIMgr.PushScene(UIPage.PlayPage); } } }