コード例 #1
0
        /// <summary>
        /// Disposes the VesselManager
        /// </summary>
        public static void Dispose()
        {
            managerInstance.UnlinkEvents();
            managerInstance.ActiveVessel = null;
            managerInstance = null;

            Program.AddDebugLog("Vessel Part Manager Disposed.");
        }
コード例 #2
0
        public static void Terminate()
        {
            _instance.UnlinkEvents();
            _instance.ActiveVesselPartsList.Clear();
            _instance.ActiveVessel = null;
            _instance = null;

#if DEBUG
            Debug.Log("AGM : VesselPartManager Terminated.");
#endif
        }
コード例 #3
0
        void OnDestroy()
        {
            //Terminate all UI
            foreach (KeyValuePair <string, UIObject> ui in UiList)
            {
                ui.Value.Terminate();
            }
            //Save settings to disk
            SettingsManager.Settings.save();

            VesselManager.Terminate();

#if DEBUG
            Debug.Log("AGM : Terminated.");
#endif
        }
コード例 #4
0
        /// <summary>
        /// Disposes of all Action Group Manager elements.
        /// </summary>
        private void OnDestroy()
        {
            // Terminate all UI
            foreach (KeyValuePair <UiType, UiObject> item in this.uiList)
            {
                item.Value.Dispose();
            }

            GameEvents.OnGameSettingsApplied.Remove(this.OnSettingsApplied);
            GameEvents.onHideUI.Remove(this.HideUI);
            GameEvents.onGameSceneSwitchRequested.Remove(this.ResetWindows);

            // Save settings to disk
            SettingsManager.Save();
            VesselManager.Dispose();
            Program.AddDebugLog("Visual User Interface Terminated.");
        }
コード例 #5
0
        public static void Terminate()
        {
            _instance.UnlinkEvents();
            _instance.ActiveVesselPartsList.Clear();
            _instance.ActiveVessel = null;
            _instance = null;

            #if DEBUG
            Debug.Log("AGM : VesselPartManager Terminated.");
            #endif
        }
コード例 #6
0
        public PartFilter()
        {
            manager = VesselManager.Instance;

            Initialize();
        }
コード例 #7
0
        public PartFilter()
        {
            manager = VesselManager.Instance;

            Initialize();
        }