private void OnUserUpdateCoin(MAccountInfoUpdateCoin info) { if (moneyType == MoneyType.COIN) { vkTxtMyMoney.SetNumber(info.Coin); } }
private void OnUserUpdateCoin(MAccountInfoUpdateCoin info) { if (_sam.moneyType == MoneyType.COIN) { uiUser.UpdateMoney(_sam.moneyType, info.Coin); } }
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)); }
private void OnUserUpdateCoin(MAccountInfoUpdateCoin info) { if (_xocxoc.moneyType == MoneyType.COIN) { txtMyMoney.SetNumber(info.Coin); if (_xocxoc.IsDealer()) { uiPlayerMaster.UpdatePlayer(info.Coin); } } }
public void ClearUI() { vkCountDown.gameObject.SetActive(true); vkCountDown.StopCountDown(); vkChipPool.GiveBackAll(); cacheGold = null; cacheCoin = null; uiPlayers.ForEach(a => a.ClearUI()); DisableBuyerButton(); }
public void ClearUI() { uiBatDia.ClearUI(); uiGates.ForEach(a => a.ClearUI()); vkCountDown.StopCountDown(); vkChipPool.GiveBackAll(); txtUser.text = "0"; txtId.text = ""; cacheGold = null; cacheCoin = null; }
public void UpdateUserCoin(MAccountInfoUpdateCoin newInfo, bool skipTracktime = false) { if (Math.Abs(mAccount.Coin - newInfo.Coin) >= 1) { if (newInfo.Coin < 0) { newInfo.Coin = 0; } mAccount.Coin = Math.Truncate(newInfo.Coin); if (!skipTracktime) { lastUpdateCoin = DateTime.Now; } if (OnUserUpdateCoinEvent != null) { OnUserUpdateCoinEvent(newInfo); } onUserUpdateCoinEventLua.Invoke(newInfo); } }
private void UpdateCoin(MAccountInfoUpdateCoin infoUpdate) { viewLobby.setQuantityCoin(infoUpdate.Coin); }