private void Dispose(bool disposing) { Varjo_SteamVR_Events.Initializing.Remove(OnInitializing); Varjo_SteamVR_Events.Calibrating.Remove(OnCalibrating); Varjo_SteamVR_Events.OutOfRange.Remove(OnOutOfRange); Varjo_SteamVR_Events.DeviceConnected.Remove(OnDeviceConnected); Varjo_SteamVR_Events.NewPoses.Remove(OnNewPoses); _instance = null; }
//static private bool isQuitting; void OnApplicationQuit() { //isQuitting = true; Varjo_SteamVR.SafeDispose(); }