/// <summary> /// parduoti bokštelį /// </summary> public void SellTurret() { Turret _turret = turret.GetComponent <Turret>(); PlayerStats.Gold += turretBlueprint.GetSellCost() + (_turret.lvl * turretBlueprint.upgradeCost / 2); Destroy(turret); sounds.SellTower.Play(); turretBlueprint = null; }
public void SellTurret() { PlayerStats.Money += (int)turretBlueprint.GetSellCost(); Destroy(turret); turret = null; }