public void UpgradeIdleGenerated() { if (Data.GetCurrency() < Data.GetIdleUpgradePrice()) { return; } DecreaseCurrency(Data.GetIdleUpgradePrice()); Data.UpgradeIdleGenerated(); }