void OnDestroy() { instance = null; GameEvents.onHideUI.Remove(onHideUI); GameEvents.onShowUI.Remove(onShowUI); InputLib.Close(); }
void OnDestroy() { instance = null; GameEvents.onVesselChange.Remove(OnVesselChange); GameEvents.onInputLocksModified.Remove(OnInputLocksModified); InputLib.Close(); InputLib.DeviceAdded -= DeviceAdded; InputLib.DeviceRemoved -= DeviceRemoved; FlightInputHandler.OnRawAxisInput -= ControlUpdate; }