Example #1
0
 private void OnUserUpdateGold(MAccountInfoUpdateGold info)
 {
     if (moneyType == MoneyType.GOLD)
     {
         vkTxtMyMoney.SetNumber(info.Gold);
     }
 }
Example #2
0
 private void OnUserUpdateGold(MAccountInfoUpdateGold info)
 {
     if (_sam.moneyType == MoneyType.GOLD)
     {
         uiUser.UpdateMoney(_sam.moneyType, info.Gold);
     }
 }
Example #3
0
    public void HubShowResult(object[] data)
    {
        SRSBauCuaGameResult bcResult = new SRSBauCuaGameResult(data);

        _baucua.session.State = BauCuaState.SHAKING;

        AudioAssistant.Instance.PlaySoundGame(_GAMEID, _STIMEOUT);

        vkCountDown.StopCountDown();
        vkCountDown.StartCoundown((float)bcResult.elapsed);

        cacheGold = new MAccountInfoUpdateGold(_account.Gold + bcResult.GetGoldAdd());
        cacheCoin = new MAccountInfoUpdateCoin(_account.Coin + bcResult.GetCoinAdd());

        // add history
        _baucua.histories.Insert(0, new SRSBauCuaHistoryItem
        {
            SessionId = txtId.text,
            Dice1     = bcResult.result.Dice1,
            Dice2     = bcResult.result.Dice2,
            Dice3     = bcResult.result.Dice3
        });
        if (_baucua.histories.Count > 20)
        {
            _baucua.histories.RemoveAt(_baucua.histories.Count - 1);
        }

        StartCoroutine(WaitShowResult(bcResult));
    }
Example #4
0
    private void OnUserUpdateGold(MAccountInfoUpdateGold info)
    {
        if (_xocxoc.moneyType == MoneyType.GOLD)
        {
            txtMyMoney.SetNumber(info.Gold);

            if (_xocxoc.IsDealer())
            {
                uiPlayerMaster.UpdatePlayer(info.Gold);
            }
        }
    }
Example #5
0
    public void ClearUI()
    {
        vkCountDown.gameObject.SetActive(true);
        vkCountDown.StopCountDown();

        vkChipPool.GiveBackAll();

        cacheGold = null;
        cacheCoin = null;

        uiPlayers.ForEach(a => a.ClearUI());

        DisableBuyerButton();
    }
Example #6
0
    public void ClearUI()
    {
        uiBatDia.ClearUI();

        uiGates.ForEach(a => a.ClearUI());

        vkCountDown.StopCountDown();

        vkChipPool.GiveBackAll();

        txtUser.text = "0";
        txtId.text   = "";

        cacheGold = null;
        cacheCoin = null;
    }
Example #7
0
    public void UpdateUserGold(MAccountInfoUpdateGold newInfo, bool skipTracktime = false)
    {
        if (Math.Abs(mAccount.Gold - newInfo.Gold) >= 1)
        {
            if (newInfo.Gold < 0)
            {
                newInfo.Gold = 0;
            }

            mAccount.Gold = Math.Truncate(newInfo.Gold);

            if (!skipTracktime)
            {
                lastUpdateGold = DateTime.Now;
            }

            if (OnUserUpdateGoldEvent != null)
            {
                OnUserUpdateGoldEvent(newInfo);
            }
            onUserUpdateGoldEventLua.Invoke(newInfo);
        }
    }
Example #8
0
 private void UpdateGold(MAccountInfoUpdateGold infoUpdate)
 {
     viewLobby.SetQuantiyGem(infoUpdate.Gold);
 }
 private void OnUpdateGold(MAccountInfoUpdateGold info)
 {
     quantityGoldRemain         = (long)info.Gold;
     txtQuantityGoldRemain.text = VKCommon.ConvertStringMoney(quantityGoldRemain);
 }
Example #10
0
 private void OnUpdateGold(MAccountInfoUpdateGold info)
 {
     txtQuantityGold.text = VKCommon.ConvertStringMoney(info.Gold);
 }