Exemple #1
0
 private void WindowGUI(int windowID)
 {
     GUILayout.BeginVertical();
     GUILayout.Label("Jool");
     if (GUILayout.Button("Boom goes the dynamite"))
     {
         JoolNova.DoNova();
     }
     if (GUILayout.Button("Jool"))
     {
         JoolNova.SetTransformed(false);
     }
     if (GUILayout.Button("Sun"))
     {
         JoolNova.SetTransformed(true);
     }
     if (GUILayout.Button("Dump Component Debug"))
     {
         foreach (Component compo in PSystemManager.Instance.localBodies.Find(b => b.name == "Jool").
                  scaledBody.gameObject.GetComponentsInChildren <Component>(true))
         {
             Debug.Log("    jool scaledBody compo: " + compo);
         }
     }
     GUILayout.Label("Kerbal");
     if (GUILayout.Button("Ghost") && FlightGlobals.ActiveVessel != null && FlightGlobals.ActiveVessel.vesselType == VesselType.EVA)
     {
         GhostKerbal.MakeGhost(FlightGlobals.ActiveVessel);
     }
     GUILayout.EndVertical();
     GUI.DragWindow();
 }
Exemple #2
0
 void Destroy()
 {
     Instance = null;
     GameEvents.onGameSceneSwitchRequested.Remove(new EventData <GameEvents.FromToAction <GameScenes, GameScenes> > .OnEvent(GameSceneSwitch));
 }
Exemple #3
0
 void Start()
 {
     Instance = this;
     GameEvents.onGameSceneSwitchRequested.Add(new EventData <GameEvents.FromToAction <GameScenes, GameScenes> > .OnEvent(GameSceneSwitch));
 }
 void Start()
 {
     Instance = this;
     GameEvents.onGameSceneSwitchRequested.Add(new EventData<GameEvents.FromToAction<GameScenes, GameScenes>>.OnEvent(GameSceneSwitch));
 }
 void Destroy()
 {
     Instance = null;
     GameEvents.onGameSceneSwitchRequested.Remove(new EventData<GameEvents.FromToAction<GameScenes, GameScenes>>.OnEvent(GameSceneSwitch));
 }