/// <summary>
    ///  服务器广播玩家弃牌
    /// </summary>
    /// <param name="obj"></param>
    private void OnServerBroadcastGiveupPoker(byte[] obj)
    {
        JY_ROOM_GIVEUPPOKER proto = JY_ROOM_GIVEUPPOKER.decode(obj);

        RoomJuYouProxy.Instance.GiveupPoker(proto);

        if (JuYouSceneCtrl.Instance != null)
        {
            //玩家弃牌
            JuYouSceneCtrl.Instance.AloneSettle(proto.pos, true);
        }
    }
Exemple #2
0
 /// <summary>
 ///  弃牌
 /// </summary>
 /// <param name="proto"></param>
 public void GiveupPoker(JY_ROOM_GIVEUPPOKER proto)
 {
     if (proto.hasPos())
     {
         SeatEntity seat = GetSeatBySeatId(proto.pos);
         if (seat != null)
         {
             seat.PokerList.Clear();
         }
         seat.seatStatus = SEAT_STATUS.WAIT;
         seat.Pour       = 0;
         SendSeatInfoChangeNotify(seat);
     }
     SetCountDown(0);
 }