Esempio n. 1
0
    void Start()
    {
        SkeletalTrackingProvider m_skeletalTrackingProvider = new SkeletalTrackingProvider();

        //tracker ids needed for when there are two trackers
        const int TRACKER_ID = 0;

        m_skeletalTrackingProvider.StartClientThread(TRACKER_ID);
        m_backgroundDataProvider = m_skeletalTrackingProvider;
    }
    public void StartAfterConfig()
    {
        m_tracker = GetComponent <TrackerHandler>();
        const int TRACKER_ID = 0;

        if (m_tracker.isKinect2)
        {
            SkeletalTrackingProviderKinect2 m_skeletalTrackingProvider2 = new SkeletalTrackingProviderKinect2();
            m_skeletalTrackingProvider2.StartClientThread(TRACKER_ID);
            m_backgroundDataProvider = m_skeletalTrackingProvider2;
        }
        else
        {
            SkeletalTrackingProvider m_skeletalTrackingProvider = new SkeletalTrackingProvider();
            m_skeletalTrackingProvider.StartClientThread(TRACKER_ID);
            m_backgroundDataProvider = m_skeletalTrackingProvider;
        }
        //tracker ids needed for when there are two trackers

        started = true;
    }