void OnDestroy() { Instance = null; GameEvents.onVesselChange.Remove(onVesselChange); GameEvents.onVesselWasModified.Remove(onVesselWasModified); GameEvents.onHideUI.Remove(onHideUI); GameEvents.onShowUI.Remove(onShowUI); }
void Awake() { Instance = this; GameEvents.onVesselChange.Add(onVesselChange); GameEvents.onVesselWasModified.Add(onVesselWasModified); GameEvents.onHideUI.Add(onHideUI); GameEvents.onShowUI.Add(onShowUI); enabled = false; }
public void CloseImportExport() { FlipMenus(false); ImportExportWindow.HideGUI(); }
public void EditImportExport() { FlipMenus(true); ImportExportWindow.ShowGUI(this); }