Example #1
0
        public void OnDestroy()
        {
            plane.CleanUp();
            lander.CleanUp();

            Util.controller.ResetShake();
        }
Example #2
0
        public void OnDestroy() // We left the FlightScene, this Monobehaviour is being destroyed.
        {
            GameEvents.onVesselChange.Remove(this.OnVesselChange);

            Settings.SaveCurrentVesselConfig(this.ActiveVessel);
            plane.CleanUp();
            lander.CleanUp();

            Util.controller.ResetShake();
        }