public void UpgradeROF() { if (stats.CalCost(false) <= stats.Cash) { ROF -= .01f; ROF = Mathf.Round(ROF * 100f) / 100f; stats.Cash -= stats.CalCost(false); GetComponent <stats>().TowerStrength++; } }
public void UpgradeHealth() { if (stats.CalCost(true) < stats.Science) { health++; stats.Science = Mathf.Round((stats.Science - stats.CalCost(true)) * 100) / 100; GetComponent <stats>().MonsterStrength++; } }