Ejemplo n.º 1
0
    void OnDestroy()
    {
        if (enableSignalControl)
        {
            HandGestureManager.Instance.Controller <HandSignalController>().unregisterCallbackFromInspector(handSignalCallback);
            handSignalCallback = null;
        }
        if (enableCursorControl)
        {
            HandGestureManager.Instance.Controller <HandCursorController>().unregisterCallbackFromInspector(handCursorCallback);
            handCursorCallback = null;
        }
        if (enableGrabControl)
        {
            HandGestureManager.Instance.Controller <HandGrabController>().unregisterCallbackFromInspector(handGrabCallback);
            handGrabCallback = null;
        }
        if (enableRawTrackingControl)
        {
            HandGestureManager.Instance.Controller <HandTrackingController>().unregisterCallbackFromInspector(handTrackingCallback);
            handTrackingCallback = null;
        }
        HandGestureManager.Instance.Destroy();


        mMADSDKIntegratorHandSignal.OnDestroy();
        mMADSDKIntegratorHandCursor.OnDestroy();
        mMADSDKIntegratorTrackedHand.OnDestroy();
        mMADSDKIntegratorGrab.OnDestroy();
    }
Ejemplo n.º 2
0
 void OnDestroy()
 {
     mMADSDKIntegratorHandSignal.OnDestroy();
     mMADSDKIntegratorHandCursor.OnDestroy();
     mMADSDKIntegratorTrackedHand.OnDestroy();
     mMADSDKIntegratorGrab.OnDestroy();
 }