public void UpgradeUnit(int unitIndex) { int cost = unitSpawner.UpgradeUnit(unitIndex, goldController.GetBalance()); goldController.RemoveBalance(cost); }