public void RemovePreInstallUpgrade() { InstalledUpgrade.PreDettachFromShip(); if (OnRemovePreInstallUpgrade != null) { OnRemovePreInstallUpgrade(InstalledUpgrade); } InstalledUpgrade = null; }
public void RemovePreInstallUpgrade() { InstalledUpgrade.PreDettachFromShip(); OnRemovePreInstallUpgrade?.Invoke(InstalledUpgrade); InstalledUpgrade = null; if (DebugManager.FreeMode) { if (HostShip.UpgradeBar.GetUpgradeSlots().Count(n => n.Type == UpgradeType.Omni && n.IsEmpty) > 1) { HostShip.UpgradeBar.RemoveEmptySlot(UpgradeType.Omni); } } }
public void RemovePreInstallUpgrade() { InstalledUpgrade.PreDettachFromShip(); InstalledUpgrade = null; }