/// <summary> /// 开始下一把 /// </summary> public void OnServerNextGame(JY_ROOM_NEXT proto) { CurrentRoom.roomStatus = ROOM_STATUS.IDLE; CurrentRoom.baseScore = 0; if (!proto.hasBankerPos()) { return; } SeatEntity seat = GetSeatBySeatId(proto.bankerPos); if (seat == null) { return; } //切换庄 for (int i = 0; i < CurrentRoom.SeatList.Count; i++) { if (CurrentRoom.SeatList[i] != null && CurrentRoom.SeatList[i].PlayerId > 0) { CurrentRoom.SeatList[i].seatStatus = SEAT_STATUS.IDLE; CurrentRoom.SeatList[i].IsBanker = false; } } seat.IsBanker = true; //UI刷新 SendRoomInfoChangeNotify(); }
/// <summary> /// /// </summary> private void OnServerNextGame(byte[] obj) { AppDebug.Log("服务器广播准备下一局"); if (m_UISettleView != null) { m_UISettleView.Close(); } JY_ROOM_NEXT proto = JY_ROOM_NEXT.decode(obj); RoomJuYouProxy.Instance.OnServerNextGame(proto); if (JuYouSceneCtrl.Instance != null) { JuYouSceneCtrl.Instance.NextGame(); } }