public void buildTurret() { if (active.building == null && player.Money >= turret.GetComponent <Turret>().costs) { active.buildTurret(); player.Money -= turret.GetComponent <Turret>().costs; } Cancel(); }
public void buildTurret() { if (active.building == null && player.Money >= turret.GetComponent <Turret>().costs) { active.buildTurret(); player.Money -= turret.GetComponent <Turret>().costs; } Cancel(); }