internal override void InfoCardPlayerInTbl(Message message, string turnName, int time, sbyte numP) { base.InfoCardPlayerInTbl(message, turnName, time, numP); try { for (int i = 0; i < numP; i++) { string nameP = message.reader().ReadUTF(); bool isDangXep = message.reader().ReadBoolean(); MauBinhPlayer pl = (MauBinhPlayer)GetPlayerWithName(nameP); if (pl != null) { pl.IsPlaying = true; pl.SetXepXong(!isDangXep); // int[] temp = new int[13]; // for (int j = 0; j < temp.Length; j++) { // temp [j] = 52; // } StartCoroutine(pl.cardMauBinh.SetDangChoi(!isDangXep)); } } GameControl.instance.TimerTurnInGame = time; timeCountDown.SetTime(time); } catch (Exception e) { Debug.LogException(e); } }
public void OnFinalMauBinh(Message message) { string nameP = message.reader().ReadUTF(); MauBinhPlayer pl = (MauBinhPlayer)GetPlayerWithName(nameP); if (pl != null) { pl.cardMauBinh.SetSoBai(pl.SitOnClient == 0); pl.SetXepXong(true); } if (nameP.Equals(ClientConfig.UserInfo.UNAME)) { SetActiveButton(false, false, true, false); } }