コード例 #1
0
        /// <summary>
        /// 房间财富变更 lastTimeBetPlayerUid: 上次下注的玩家uid ,lastTimePlayerBetGoldCount :上次下注的玩家下注的金币数量,lastTimeBetPlayerResidue: 上次下注的玩家剩余金币,nextBetPlayerUid: 下一个下注的玩家uid,nowRoomAllGold: 当前房间总金币
        /// </summary>
        public override void roomBetWeathUpate(long lastTimeBetPlayerUid, long lastTimePlayerBetGoldCount, long lastTimeBetPlayerResidue, long nextBetPlayerUid, long nowRoomAllGold)
        {
            PlayerCache.roomPlayerObjDic[lastTimeBetPlayerUid].PlayerBet(lastTimePlayerBetGoldCount);
            PlayerCache.roomPlayerObjDic[lastTimeBetPlayerUid].BetSuccess(lastTimeBetPlayerResidue);
            //开启下一玩家的progress
            PlayerCache.CurrentTurnPlayerUid = nextBetPlayerUid;
            PlayerCache.roomPlayerObjDic[nextBetPlayerUid].PlayeProgressAni();
            UIZJHPanel zjhPanel = MessageManager.GetInstance.GetUIDict <UIZJHPanel>();

            if (zjhPanel == null)
            {
                CheatZjhPanel cheatZjhPanel = MessageManager.GetInstance.GetUIDict <CheatZjhPanel>();
                zjhPanel = cheatZjhPanel;
                cheatZjhPanel.StartChangeCard = true;
            }

            if (PlayerCache.firstBetPlayer == lastTimeBetPlayerUid)
            {
                zjhPanel.UpdateRoundAndCinglTimes();
            }
            if (nextBetPlayerUid == PlayerCache.loginInfo.uid)
            {
                if (zjhPanel.isAutoFollow && !zjhPanel.isFinalAllIn)
                {
                    zjhPanel.AutoFollow();
                }
                else
                {
                    PlayerCache.roomPlayerObjDic[PlayerCache.loginInfo.uid].TurnSelf();
                }
            }
            zjhPanel.SetTotalGoldTxt(nowRoomAllGold);
        }
コード例 #2
0
        public override void exchangeCard2CallBack(PbIntegerDto callBackParam)
        {
            CheatZjhPanel cheatZjhPanel = MessageManager.GetInstance.GetUIDict <CheatZjhPanel>();

            if (cheatZjhPanel != null)
            {
                cheatZjhPanel.ChangeCardResponse(callBackParam.value);
            }
        }
コード例 #3
0
 /// <summary>
 /// 通知下以玩家操作 nextOperationUid:下一操作的玩家uid
 /// </summary>
 public override void nextPlayerOperation(long nextOperationUid)
 {
     PlayerCache.CurrentTurnPlayerUid = nextOperationUid;
     PlayerCache.roomPlayerObjDic[nextOperationUid].PlayeProgressAni();
     Debug.Log("nextOperationUid" + nextOperationUid + "::" + PlayerCache.loginInfo.uid);
     if (nextOperationUid == PlayerCache.loginInfo.uid)
     {
         UIZJHPanel zjhpanel = MessageManager.GetInstance.GetUIDict <UIZJHPanel>();
         if (zjhpanel == null)
         {
             CheatZjhPanel cheatZjhPanel = MessageManager.GetInstance.GetUIDict <CheatZjhPanel>();
             zjhpanel = cheatZjhPanel;
             cheatZjhPanel.StartChangeCard = true;
         }
         if (zjhpanel.isAutoFollow && !zjhpanel.isFinalAllIn)
         {
             zjhpanel.AutoFollow();
         }
         else
         {
             PlayerCache.roomPlayerObjDic[PlayerCache.loginInfo.uid].TurnSelf();
         }
     }
 }