public void updateCoinsScore() { m_coinsupdated.SetTempAvailCoins(m_coinsupdated.GetTempAvailableCoins() + (m_coinsupdated.GetcoinValue())); float m_coinsArchived = m_coinsupdated.GetTempAvailableCoins(); m_coinsupdated.SetModifiedAvailCoins((int)Mathf.Ceil(m_coinsArchived)); Debug.Log("Coins value is--->" + m_coinsupdated.GetModifiedAvailCoins()); }
public bool checkPaymentgatewayforCodePerSecond() { if (m_purchaseGateway.GetUpdateCodePersecond() < m_gateway.GetModifiedAvailCoins()) { //Total amount of COins in coins bar the m_gateway.SetModifiedAvailCoins(m_gateway.GetModifiedAvailCoins() - m_purchaseGateway.GetUpdateCodePersecond()); m_damageupdate.UpdatePlayerbulletReleaseSpeed(); return(true); } return(false); }
// Update is called once per frame void Update() { CoinsScoreText.SetText(UpdateScore.GetModifiedAvailCoins().ToString()); DiamondsScoreText.SetText(UpdateScore.GetAvailableDiamonds().ToString()); HeartsScoreText.SetText(UpdateScore.GetAvailableHearts().ToString()); }
private void Updatecoinsenemykilled(int i) { bigEnemyCoins.SetModifiedAvailCoins(bigEnemyCoins.GetModifiedAvailCoins() + i); }