Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public void HideUI()
 {
     TankWindow.HideGUI();
     UpdateMenus(false);
 }