public void SellTurret() { if (isUpgraded) { PlayerStats.Money += turretBlueprint.GetSellAmountOfUpgrade(); } else { PlayerStats.Money += turretBlueprint.GetSellAmount(); } GameObject effect = (GameObject)Instantiate(buildManager.sellEffect, GetBuildPosition(), Quaternion.identity); Destroy(effect, 5f); isUpgraded = false; Destroy(turret); turretBlueprint = null; }