Exemplo n.º 1
0
    public void ToggleUpgradeButtons()
    {
        if (upgradeMenu == null)
        {
            Start();
        }

        upgradeMenu.ToggleDamageButton(CanAfford(damageUpgradeCost));
        upgradeMenu.ToggleFireRateButton(CanAfford(fireRateUpgradeCost));
        upgradeMenu.ToggleHealthButton(CanAfford(healthUpgradeCost));
        upgradeMenu.ToggleHealingButtons(CanAfford(healingCost));
    }