/// <summary> /// Destroy this instance. /// </summary> void OnDestroy() { // We may want to turn this off so that values are maintained between level / scene loads if (!ResetTrackerOnLoad || HMD == null) { return; } HMD.Destroy(); Hmd.Shutdown(); HMD = null; }