public void OnButtonPressed() { if (metalManager.Metal - turret.Cost >= 0) { metalManager.DeductMetal(turret.Cost); buildingBase.PlaceTurret(turret); exitController.CloseMenuIfOpen(); } else { exitController.CloseMenuIfOpen(); } }
public void OnButtonPressed() { if (metalManager.Metal - turret.Cost >= 0) { metalManager.DeductMetal(turret.Cost); buildingBase.PlaceTurret(turret); exitController.CloseMenuIfOpen(); } else { exitController.CloseMenuIfOpen(); } }