예제 #1
0
 void OnDestroy()
 {
     Instance = null;
     GameEvents.onVesselChange.Remove(onVesselChange);
     GameEvents.onVesselWasModified.Remove(onVesselWasModified);
     GameEvents.onHideUI.Remove(onHideUI);
     GameEvents.onShowUI.Remove(onShowUI);
 }
예제 #2
0
 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);
 }