Ejemplo n.º 1
0
    //清除下注
    public override void clearBet2CallBack(GameDiceBetUpdateWeathDto callBackParam)
    {
        DiceGameMove diceGameMove = MessageManager.GetInstance.GetUIDict <DiceGameMove>();

        //及时更改财富
        PlayerCache.loginInfo.gold = callBackParam.residueGold;
        //清除成功方法
        diceGameMove.ClearBetSucc(callBackParam.residueGold);
    }
Ejemplo n.º 2
0
 //下注成功返回事件
 public override void bet2CallBack(GameDiceBetUpdateWeathDto callBackParam)
 {
     if (callBackParam != null)
     {
         DiceGameMove diceGameMove = MessageManager.GetInstance.GetUIDict <DiceGameMove>();
         UIDicePlane  UIDicePlane  = MessageManager.GetInstance.GetUIDict <UIDicePlane>();
         //及时更改自己的财富
         PlayerCache.loginInfo.gold = callBackParam.residueGold;
         //自己投注金额及财富变更改变
         diceGameMove.SelfBetGoldCount(callBackParam);
         UIDicePlane.BetSucceed(callBackParam);
     }
 }
Ejemplo n.º 3
0
 //下注成功
 public void BetSucceed(GameDiceBetUpdateWeathDto betUpdateDto)
 {
     IsBack = false;
     BetGold(tempA);
     tempbetChange += betUpdateDto.betGold;
     if (tempbetChange >= 1000000000)
     {
         AudioManager.Instance.PlaySound("yazhuchaoguo1000wan");
         tempbetChange = 0;
     }
     //座位中有自己
     if (PlayerCache.SeatPlayerinfoDic.ContainsKey(PlayerCache.loginInfo.uid))
     {
         PlayerCache.SeatPlayerinfoDic.TryGetValue(PlayerCache.loginInfo.uid, out GameDicePositionPlayerInfoDto value);
         //更改座位上自己的钱数自己看
         SeatList[value.position].transform.GetChild(0).GetChild(2).GetComponent <Text>().text = NumberConvert.ConvertW(betUpdateDto.residueGold);
     }
     //自身剩余钱数
     PlayerGoldCount.text = betUpdateDto.residueGold.ToString();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 清除下注 返回剩下多少钱,返回乐多少钱 ----> <<clearBet();回调>>
 /// </summary>
 public virtual void clearBet2CallBack(GameDiceBetUpdateWeathDto callBackParam)
 {
 }
Ejemplo n.º 5
0
 public void SelfBetGoldCount(GameDiceBetUpdateWeathDto betUpdateDto)
 {
     //投注金额
     tempselfgold      = betUpdateDto.betGold + tempselfgold;
     betGoldcount.text = tempselfgold.ToString();
 }