public void BuyButton() { if (resourcesManager.CheckIfEnoughResource(currentPrice)) { resourcesManager.Buy(currentPrice); StatsManager.instance.UpgradeBaseStats(incrementalUpgrade, amountBought); amountBought++; SetPrice(); ManualSave(); } }
public void BuyButton() { if (resourcesManager.CheckIfEnoughResource(price)) { resourcesManager.Buy(price); amountBought++; OpenBoughtPanel(); buyButton.interactable = false; AbilityManager.instance.UnlockAbility(abilityId); ManualSave(); } }
public void BuyButton() { if (resourcesManager.CheckIfEnoughResource(price)) { resourcesManager.Buy(price); StatsManager.instance.UpgradePermanentStatsPercentage(upgrade); amountBought++; OpenBoughtPanel(); buyButton.interactable = false; ManualSave(); } }