public void StartLeapMotionCalibration(Action callback) { Debug.Log("LeapMotionControllerCursorBehaviour: calibrating..."); isCalibrating = true; finishCalibrationCallback = callback; leapHandModelManager.EnableGroup("Rigged Hands"); }
// 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"); } }
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)); } } }