public void GameStart(PAIGOW_ROOM_GAMESTART proto) { if (proto.hasLoop()) { CurrentRoom.currentLoop = proto.loop; CurrentRoom.loopEnd = false; CurrentRoom.isCutPan = false; CurrentRoom.isBombPan = false; //刷新房间局数 TransferData roomData = new TransferData(); roomData.SetValue("Room", CurrentRoom); SendNotification(ConstDefine_PaiJiu.ObKey_RoomInfoChanged, roomData);//房间信息改变 } }
/// <summary> /// 服务器广播玩家离开消息 /// </summary> /// <param name="obj"></param> private void OnServerBroadcastGameStart(byte[] obj) { PAIGOW_ROOM_GAMESTART proto = PAIGOW_ROOM_GAMESTART.decode(obj); RoomPaiJiuProxy.Instance.GameStart(proto); }