private void CheckWhetherHandsAreInside() { if (leap.hoveringControllers.Any(c => proxyNode.Contains(c.position))) { leap.ignoreGrasping = true; ChangeMode(ManipulationMode.Inside); } }
private void Update() { if (manipulation.Mode == ManipulationMode.Inside) { // Check which of the hands is inside foreach (var hController in interactionBehaviour.hoveringControllers) { if (hController.gameObject.tag == "BaseHand" && proxyNode.Contains(hController.position)) { // Enable all the mark hands for the base hand that is inside foreach (var mark in proxyNode.Marks) { if (hController.isLeft) { mark.LeftHand.Enable(proxyNode); } else { mark.RightHand.Enable(proxyNode); } } } else if (hController.gameObject.tag == "BaseHand") { // Disable all the mark hands for the base hand that is inside foreach (var mark in proxyNode.Marks) { if (hController.isLeft) { mark.LeftHand.Disable(); } else { mark.RightHand.Disable(); } } } } } }