Beispiel #1
0
    //开始
    public override void start()
    {
        UIDicePlane  uIDicePlane  = MessageManager.GetInstance.GetUIDict <UIDicePlane>();
        DiceGameMove diceGameMove = MessageManager.GetInstance.GetUIDict <DiceGameMove>();

        //记录自己的财富
        uIDicePlane.SelfWeathinfo();
        //倒计时开始
        diceGameMove.CountdownMove1(25);
        uIDicePlane.BetChipBool(true);
    }
Beispiel #2
0
    //进入房间
    public void InitialInfo(DiceRoomInfiDto diceRoomInfiDto)
    {
        UIDicePlane uIDicePlane = MessageManager.GetInstance.GetUIDict <UIDicePlane>();

        if (diceRoomInfiDto != null)
        {    //将有座玩家信息存进字典
            for (int i = 0; i < diceRoomInfiDto.positionInfo.Count; i++)
            {
                if (PlayerCache.SeatPlayerinfoDic.ContainsKey(diceRoomInfiDto.positionInfo[i].uid))
                {
                    PlayerCache.SeatPlayerinfoDic.Remove(diceRoomInfiDto.positionInfo[i].uid);
                }
                if (diceRoomInfiDto.positionInfo[i].position >= 0)
                {
                    PlayerCache.SeatPlayerinfoDic.Add(diceRoomInfiDto.positionInfo[i].uid, diceRoomInfiDto.positionInfo[i]);
                }
            }
            //开局座位信息显示
            uIDicePlane.UISeat();

            //更改倒计时
            if (diceRoomInfiDto.roomTimer < 25)
            {
                CountdownMove(diceRoomInfiDto.roomTimer);
            }
            if (diceRoomInfiDto.roomTimer > 28)
            {
                XUIMidMsg.QuickMsg("结算中,请稍等");
            }
            //更改下注人数和总额
            Betpeoplenum_RentalMove(diceRoomInfiDto.betPlayerNum, diceRoomInfiDto.betAllNum);
            GameManager.Instance.diceRoomInfiDto = null;
            //筹码事件
            uIDicePlane.StakeCountonclick(0);
            //获取个人信息
            uIDicePlane.GainPlayer();
            //记录初始金币
            uIDicePlane.SelfWeathinfo();
            //投注上限
            //Maximumbetsvo(Diceliuliu.diceRoomInfiDto.BetLimit);
        }
    }