Exemple #1
0
 /// <summary>
 /// 有玩家下注的服务器广播
 /// </summary>
 /// <param name="arg"></param>
 private void PutStakesBRO(StakesDto dto)
 {
     // 自身
     if (dto.userId == Models.GameModel.MatchRoomDto.LeftPlayerId)
     {
         txtCoin.text = dto.remainCoin.ToString();
         if (dto.stakesType == StakesDto.StakesType.NoLook)
         {
             stakesHint.ShowHint(dto.stakesCount + "不看");
             txtStakesSum.text = dto.stakesSum.ToString();
         }
         else
         {
             stakesHint.ShowHint(dto.stakesCount + "看看");
             txtStakesSum.text = dto.stakesSum.ToString();
         }
     }
     goCountDown.SetActive(false);
     isStartStakes = false;
 }
Exemple #2
0
 /// <summary>
 /// 有玩家下注的服务器广播
 /// </summary>
 /// <param name="arg"></param>
 private void PutStakesBRO(StakesDto dto)
 {
     // 自身
     if (dto.userId == Models.GameModel.userDto.id)
     {
         txtCoin.text = dto.remainCoin.ToString();
         if (dto.stakesType == StakesDto.StakesType.NoLook)
         {
             stakesHint.ShowHint(dto.stakesCount + "不看");
             txtStakesSum.text = dto.stakesSum.ToString();
         }
         else
         {
             stakesHint.ShowHint(dto.stakesCount + "看看");
             txtStakesSum.text = dto.stakesSum.ToString();
         }
     }
     goCountDown.SetActive(false);
     SetBtnInteractable(false);
     isStartStakes = false;
     goCompareBtns.SetActive(false);
 }
Exemple #3
0
 /// <summary>
 /// 跟注后更新金币并提示文本
 /// </summary>
 /// <param name="count"></param>
 /// <param name="str"></param>
 protected virtual void StakesAfter(int count, string str)
 {
     stakesHint.ShowHint(count + str);
     stakesSum        += count;
     txtStakesSum.text = stakesSum.ToString();
 }