Exemple #1
0
 /// <summary>
 /// Cleans up the component.
 /// </summary>
 void OnDestroy()
 {
     #if PLATFORM_LUMIN
     MLHeadTracking.UnregisterOnHeadTrackingMapEvent(OnHeadTrackingMapEvent);
     MLHeadTracking.Stop();
     MLInput.OnControllerButtonDown -= OnButtonDown;
     #endif
 }
Exemple #2
0
 /// <summary>
 /// Cleans up the component.
 /// </summary>
 void OnDestroy()
 {
     #if PLATFORM_LUMIN
     MLInput.OnControllerTouchpadGestureStart -= OnTouchpadGestureStart;
     MLInput.OnTriggerDown          -= OnTriggerDown;
     MLInput.OnControllerButtonDown -= OnButtonDown;
     MLHeadTracking.UnregisterOnHeadTrackingMapEvent(OnHeadTrackingMapEvent);
     MLHeadTracking.Stop();
     #endif
 }
Exemple #3
0
        /// <summary>
        /// Clean up.
        /// Destroys all planes instances created.
        /// </summary>
        void OnDestroy()
        {
            #if PLATFORM_LUMIN
            _planesBehavior.OnQueryPlanesResult -= HandleOnQueriedPlanes;

            MLHeadTracking.UnregisterOnHeadTrackingMapEvent(HandleOnHeadTrackingMapEvent);
            MLHeadTracking.Stop();
            #endif

            DestroyPlanes();
            DestroyBoundaries();
        }