public void OnDestroy() { plane.CleanUp(); lander.CleanUp(); Util.controller.ResetShake(); }
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(); }