public void BuySpeed() { if (goldScript.goldCount >= speedPrice) { OnBuyAnything?.Invoke(speedPrice); speedPrice *= 2; OnBuySpeed?.Invoke(); RefreshText(); } }
public void BuyOxygen() { if (goldScript.goldCount >= oxygenPrice) { OnBuyAnything?.Invoke(oxygenPrice); oxygenPrice *= 2; OnBuyOxygen?.Invoke(); RefreshText(); } }