예제 #1
0
    void Init()
    {
        HandGestureManager.Instance.DEBUG_MODE    = enableDebugMode;
        HandGestureManager.Instance.SHOW_SKELETON = showSkeleton;
        if (enableSignalControl)
        {
            HandGestureManager.Instance.Controller <HandSignalController>().registerCallbackFromInspector(handSignalCallback, enableSignalOnStartup);
        }
        if (enableCursorControl)
        {
            HandGestureManager.Instance.Controller <HandCursorController>().registerCallbackFromInspector(handCursorCallback, enableCursorOnStartup);
        }
        if (enableGrabControl)
        {
            HandGestureManager.Instance.Controller <HandGrabController>().registerCallbackFromInspector(handGrabCallback, enableGrabOnStartup);
        }
        if (enableRawTrackingControl)
        {
            HandGestureManager.Instance.Controller <HandTrackingController>().registerCallbackFromInspector(handTrackingCallback, enableGrabOnStartup);
        }

        mMADSDKIntegratorHandSignal  = new MADSDKIntegratorHandSignal();
        mMADSDKIntegratorHandCursor  = new MADSDKIntegratorHandCursor();
        mMADSDKIntegratorTrackedHand = new MADSDKIntegratorTrackedHand();
        mMADSDKIntegratorGrab        = new MADSDKIntegratorGrab();


        mMADSDKIntegratorHandSignal.OnStart();
        mMADSDKIntegratorHandCursor.OnStart();
        mMADSDKIntegratorTrackedHand.OnStart();
        mMADSDKIntegratorGrab.OnStart();
    }
예제 #2
0
    void Start()
    {
        mMADSDKIntegratorHandSignal  = new MADSDKIntegratorHandSignal();
        mMADSDKIntegratorHandCursor  = new MADSDKIntegratorHandCursor();
        mMADSDKIntegratorTrackedHand = new MADSDKIntegratorTrackedHand();
        mMADSDKIntegratorGrab        = new MADSDKIntegratorGrab();


        mMADSDKIntegratorHandSignal.OnStart();
        mMADSDKIntegratorHandCursor.OnStart();
        mMADSDKIntegratorTrackedHand.OnStart();
        mMADSDKIntegratorGrab.OnStart();
    }