public void SellTurret() { if (!isUpgraded) { PlayerStats.money += turretBlueprint.GetSellAmount(); } else { PlayerStats.money += turretBlueprint.GetSellAmountIsUpgraded(); isUpgraded = false; } Destroy(turret); turretBlueprint = null; GameObject temp = Instantiate(BuildManager.instance.sellEffect, GetBuildPosition(), Quaternion.identity); Destroy(temp, 4f); }