/// <summary>
    /// 下注
    /// </summary>
    /// <param name="proto"></param>
    public void NoticeJetton(PAIGOW_ROOM_INFORM_JETTON proto)
    {
        CurrentRoom.roomStatus = ROOM_STATUS.POUR;
        CurrentRoom.loopEnd    = false;
        List <int> pourPosList = proto.getPosList();

        for (int i = 0; i < pourPosList.Count; i++)
        {
            PaiJiu.Seat seat = GetSeatBySeatId(pourPosList[i]);
            if (seat == null)
            {
                continue;
            }

            seat.Pour = 0;

            AppDebug.Log(seat.Nickname + "开始下注");

            //提示该谁下注
            //设置倒计时
            SetCountDown(proto.unixtime);
            //SendSeatInfoChangeNotify(seat);
            //SendRoomInfoChangeNotify();
        }

        // 1 判断自己是否下注
        // 2 控制提示
        SendRoomInfoChangeNotify();
    }
Beispiel #2
0
    /// <summary>
    /// 服务器广播玩家离开消息
    /// </summary>
    /// <param name="obj"></param>
    private void OnServerBroadcastInfoRMJetton(byte[] obj)
    {
        PAIGOW_ROOM_INFORM_JETTON proto = PAIGOW_ROOM_INFORM_JETTON.decode(obj);

        RoomPaiJiuProxy.Instance.NoticeJetton(proto);
    }