public void SetValue(RoomConfigModel config) { detail.BaseScore_Text.text = config.baseScore.ToString(); detail.PlayerNum_Text.text = "0"; detail.Icon_Image.sprite = Resources.Load <Sprite>("Icons/" + config.icon); if (config.maxCoinLimit > 0) { detail.CoinsRange_Text.text = Utils.GetShotName(config.minCoinLimit) + "-" + Utils.GetShotName(config.maxCoinLimit); } else { detail.CoinsRange_Text.text = Utils.GetShotName(config.minCoinLimit) + "以上"; } }
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); } } }