示例#1
0
        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;
        }
示例#2
0
 //static private bool isQuitting;
 void OnApplicationQuit()
 {
     //isQuitting = true;
     Varjo_SteamVR.SafeDispose();
 }