private void setCodePersecondUpgrade() { playerpref.SetCodePersecond(playerpref.GetCodePerSecond() + 1); //set COde persecode ui playerpref.SetUpgradeCodePerSecondCoins(playerpref.GetUpdateCodePersecond() //coins per check + m_upgradeCoins.RandomCoinsValue()); upgradePurchaseUI(); }
void Start() { IsCodePerSecond = true; m_accessgatedway = FindObjectOfType <CoinsPurchaseGateWay>(); playerpref = FindObjectOfType <PlayerPrefPurchase>(); m_upgradeCoins = FindObjectOfType <PurchaseSpeedBoost>(); SettextTitleUi(m_TitleCodePersecond); setContentTextUI(playerpref.GetCodePerSecond().ToString() + " CPS"); isCoinsPowerIncreses(1); // upgradePurchaseUI(); }