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