/// <summary> ///下注 /// </summary> /// <param name="proto"></param> public void Jetton(JY_ROOM_JETTON proto) { if (!proto.hasPos()) { return; } SeatEntity seat = GetSeatBySeatId(proto.pos); if (!proto.hasPour()) { //通知下注 seat.seatStatus = SEAT_STATUS.POUR; } else { seat.seatStatus = SEAT_STATUS.SETTLE; //下注分数 seat.Pour = proto.pour; //seat.Gold = proto.gold; //第三张牌 if (seat.PokerList.Count < 3) { seat.PokerList.Add(new Poker()); } seat.PokerList[2].SetPoker(proto.poker); } SendSeatInfoChangeNotify(seat); }
/// <summary> /// 服务器广播下注 /// </summary> /// <param name="obj"></param> private void OnServerBroadcastJetton(byte[] obj) { JY_ROOM_JETTON proto = JY_ROOM_JETTON.decode(obj); RoomJuYouProxy.Instance.Jetton(proto); if (JuYouSceneCtrl.Instance != null && proto.hasPour()) { //JuYouSceneCtrl.Instance.DealPoker(proto.pos, true); JuYouSceneCtrl.Instance.BroadcastJetton(proto.pos); //BroadcastJetton //JuYouSceneCtrl.Instance.Begin(RoomJuYouProxy.Instance.CurrentRoom, true); } }