Ejemplo n.º 1
0
        public void OnDestroy()
        {
            if (DecayManager.CheckSceneStateMain(HighLogic.LoadedScene))
            {
                if (Planetarium.GetUniversalTime() == HighLogic.CurrentGame.UniversalTime || HighLogic.LoadedScene == GameScenes.FLIGHT)
                {
                    print("WhitecatIndustries - Orbital Decay - Vessel Information saved. Ondestroy");
                    SaveVesselInformation();
#if false
                    File.ClearNodes();
                    VesselInformation.Save(FilePath);
                    // VesselInformation.ClearNodes();
#endif
                }
            }
        }