public void SellTurret() { if (m_isTurretUpgraded) { PlayerStats.m_Money += m_Blueprint.m_SellValue + m_Blueprint.GetSellUpgrade(); } else { PlayerStats.m_Money += m_Blueprint.m_SellValue; } GameObject effect = (GameObject)Instantiate(BuildManager.m_ThisInstance.m_SoldEffect, GetBuildPosition(), Quaternion.identity); Destroy(effect, 3f); Destroy(m_Turret); m_Blueprint = null; m_isTurretUpgraded = false; }