void SettingsWindow(int windowId) { GUILayout.Label("Current Settings Group:"); settingsWindow.GUIDropDownDisplay(); int selection = settingsWindow.ActiveSelection; switch (selection) { case 0: if (_flightDataGUI.SettingsDisplay()) { dataGuiRect.height = 0; } break; case 1: _stabilityAugmentation.SettingsDisplay(); break; case 2: _airSpeedGUI.AirSpeedSettings(); break; case 3: _aeroVizGUI.SettingsDisplay(); break; } GUI.DragWindow(); }