//--------------------------------------------------------------------- // 收到機台資料 public void RcvMachineList(byte[] byarData) { CPACK_TMachineDataList LocalData = GameConnet.m_oGameClient.DoDeSerialize <CPACK_TMachineDataList>(byarData); if (LocalData != null) { foreach (var item in LocalData.m_listMachineData) { if (m_MachineDatas.ContainsKey(item.m_uiTID)) { Debug.Log("收到更新機台人數 ID : " + item.m_uiTID + " Cnt : " + item.m_usMemberCnt); m_MachineDatas[item.m_uiTID].m_usMemberCnt = item.m_usMemberCnt; } else { Debug.Log("收到更新機台人數 : 未知的機台ID"); continue; } } } if (SicBoLobby.Inst == null) //SicBoLobby.Inst = null 開啟託管 { SicBoLobbyTrusteeship = true; } else //收到機台資料 SicBoLobby.Inst.LobbyStart = true { SicBoLobby.Inst.LobbyStart = true; } }
//--------------------------------------------------------------------- // 收到機台資料 public void RcvMachineList(byte[] byarData) { CPACK_TMachineDataList LocalData = GameConnet.m_oGameClient.DoDeSerialize <CPACK_TMachineDataList>(byarData); if (LocalData != null) { foreach (var item in LocalData.m_listMachineData) { if (m_MachineDatas.ContainsKey(item.m_uiTID)) { Debug.Log("收到更新機台人數 ID : " + item.m_uiTID + " Cnt : " + item.m_usMemberCnt); m_MachineDatas[item.m_uiTID].m_usMemberCnt = item.m_usMemberCnt; } else { Debug.LogError("收到更新機台人數 : 未知的機台ID"); continue; } } } }