Esempio n. 1
0
    public void ChangeProvider()
    {
        Debug.Log("Changed");
        handModelManager.leapProvider = LeapDataProvider.getInstance();
        provider.enabled       = false;
        leftHand.leapProvider  = LeapDataProvider.getInstance();
        rightHand.leapProvider = LeapDataProvider.getInstance();

        LeapDataProvider.getInstance().StartReplay();
    }
Esempio n. 2
0
 void FixedUpdate()
 {
     if (captureEnable)
     {
         Frame hardCopy = new Frame();
         hardCopy.CopyFrom(provider.CurrentFrame);
         capturedFrames[cursor++] = hardCopy;
     }
     if (cursor == capturedFrames.Length && captureEnable)
     {
         Debug.Log("Completed");
         captureEnable = false;
         LeapDataProvider.getInstance().savedFrame = capturedFrames;
     }
 }