private void ShowPlayerCard(byte[] tmpBuf) { CMD_S_ShowCard showCard = NetUtil.BytesToStruct <CMD_S_ShowCard>(tmpBuf); GameDataSSS.Instance.playersCard = showCard; if (GlobalDataScript.Instance.myGameRoomInfo.chairId == showCard.wChairID) { if (showCard.m_b_dao_shui == 1) { SocketEventHandle.Instance.SetTips("请按照:第一墩<第二墩<第三墩 牌型排列!"); SocketEventHandle.Instance.SetClientResponse(APIS.CHUPAI_RESPONSE, "0"); } else { SocketEventHandle.Instance.SetClientResponse(APIS.CHUPAI_RESPONSE, "1"); } } else { if (showCard.m_b_dao_shui == 1) { return; } SocketEventHandle.Instance.SetClientResponse(APIS.CHUPAI_RESPONSE, null); } }
public void Init() { playersCard = new CMD_S_ShowCard(); choiceType = SUB_S_COMMONCARD.HT_INVALID; isRefreshShouPai = false; isPutOn = false; choseCount = 0; if (choiceCard == null) { choiceCard = new List <int>(); } if (lastCard == null) { lastCard = new List <int>(); } if (tdCardId == null) { tdCardId = new List <int>(); } if (zdCardId == null) { zdCardId = new List <int>(); } if (wdCardId == null) { wdCardId = new List <int>(); } choiceCard.Clear(); lastCard.Clear(); tdCardId.Clear(); zdCardId.Clear(); wdCardId.Clear(); }