Exemplo n.º 1
0
        /// <summary>
        ///  服务器广播搓牌
        /// </summary>
        /// <param name="obj"></param>
        public void RubPoker(byte[] obj)
        {
            NN_ROOM_ROB_POKER proto = proto = NN_ROOM_ROB_POKER.decode(obj);

            RoomNiuNiuProxy.Instance.RubPoker(proto);
            if (RoomNiuNiuProxy.Instance.CurrentRoom.roomStatus == NN_ENUM_ROOM_STATUS.LOOKPOCKER ||
                (RoomNiuNiuProxy.Instance.CurrentRoom.roomStatus == NN_ENUM_ROOM_STATUS.POUR && !RoomNiuNiuProxy.Instance.PlayerSeat.IsBanker && RoomNiuNiuProxy.Instance.PlayerSeat.Pour > 0))
            {
                NiuNiuGameCtrl.Instance.OpenView(UIWindowType.RubPoker_NiuNiu);
            }
        }
Exemplo n.º 2
0
 public void RubPoker(NN_ROOM_ROB_POKER proto)
 {
     if (proto.hasNnPoker())
     {
         for (int i = 0; i < PlayerSeat.PokerList.Count; i++)
         {
             if (PlayerSeat.PokerList[i].index == proto.nn_poker.index)
             {
                 PlayerSeat.PokerList[i].SetPoker(proto.nn_poker);
             }
         }
         Debug.Log(string.Format("------------------------------------- 玩家搓牌  {0}   {1}    {2}", proto.nn_poker.index, proto.nn_poker.color, proto.nn_poker.size));
     }
 }