public void sellCoin() { m_goCoin.SetActive(true); m_SldCoin.value = 0; m_SldCoin.minValue = 0; m_SldCoin.maxValue = m_cPlayer.getCoin(); m_bCoinSell = true; m_bCoinBuy = false; ChangeValue(); }
public void UpdateUi(C_PLAYER cPlayer, C_GAMECOIN cGameCoin, C_INPUT cInput) { m_txtGold.text = cPlayer.getGoid().ToString(); m_txtCoinCount.text = cPlayer.getCoin().ToString(); m_txtHealth.text = cPlayer.getHealth().ToString(); m_txtCoinName.text = cGameCoin.getCoinName(); m_txtCoinFlutuation.text = cGameCoin.getFlutuatuion().ToString() + "%"; m_txtCoinPrice.text = cGameCoin.getCoinPrice().ToString(); m_txtUpgradeTower.text = cInput.getUpgradePrice().ToString(); }