Exemple #1
0
 void OnDestroy()
 {
     GameEvents.onPartAttach.Remove(onPartAttach);
     GameEvents.onPartRemove.Remove(onPartRemove);
     GameEvents.onEditorShipModified.Remove(onEditorShipModified);
     GameEvents.onPartActionUIDismiss.Remove(OnPartActionGuiDismiss);
     TankWindow.HideGUI();
     TankWindow.OnActionGroupEditorOpened.Remove(OnActionGroupEditorOpened);
     TankWindow.OnActionGroupEditorClosed.Remove(OnActionGroupEditorClosed);
 }
Exemple #2
0
 public void HideUI()
 {
     TankWindow.HideGUI();
     UpdateMenus(false);
 }