Exemplo n.º 1
0
    //庄家财富奖池变更信息

    public void BankerWeathChange(long reduceGold, long winGold, long nowJackpot)
    {
        //庄家财富变更
        GameMove gameMove = MessageManager.GetInstance.GetUIDict <GameMove>();

        gameMove.BankerGold = winGold;
        if (reduceGold <= 0)
        {
            reduceGold = 0;
        }
        Banker.GetChild(1).GetComponent <Text>().text = reduceGold.ToString();
        if (liuliu.toRoomInfDto.banker != null)
        {
            if (liuliu.toRoomInfDto.banker.uid == PlayerCache.loginInfo.uid)
            {
                PlayerGoldCount.text = PlayerCache.loginInfo.gold.ToString();
            }
        }
        winGold = 0;
        //更改奖池信息
        gameMove.Awardgoldcount(nowJackpot);
    }