public void StartLeapMotionCalibration(Action callback)
 {
     Debug.Log("LeapMotionControllerCursorBehaviour: calibrating...");
     isCalibrating             = true;
     finishCalibrationCallback = callback;
     leapHandModelManager.EnableGroup("Rigged Hands");
 }
Esempio n. 2
0
    // Start is called before the first frame update
    void Start()
    {
        MyLeapSettings   settings         = FindObjectOfType <MyLeapSettings>();
        HandModelManager handModelManager = GetComponent <HandModelManager>();

        if (settings.enableHand)
        {
            handModelManager.EnableGroup("Rigged Hands");
        }
        else
        {
            handModelManager.DisableGroup("Rigged Hands");
        }
    }
Esempio n. 3
0
 private void UpdateHands()
 {
     for (int i = 0; i < manager.GetHandPoolSize(); i++)
     {
         if (i == activeModel)
         {
             manager.EnableGroup(manager.GetHandModelName(i));
         }
         else
         {
             manager.DisableGroup(manager.GetHandModelName(i));
         }
     }
 }