public bool tryReleaseObject()
 {
     if (GrabbingInfo.shouldRelease(InteractionController.grabbingInfoSettings, _leapHand, _grabbedObject))
     {
         _lastTimeReleased = Time.time;
         _isGrabbingObject = false;
         disconnectAllBasisPoints();
         disconnectAllFingerPoints();
         DebugGraph.Write("Released");
         return(true);
     }
     return(false);
 }
 public bool tryGrabObject()
 {
     foreach (GameObject closeObject in _closeObjects)
     {
         InteractionObject interactionObject = InteractionObject.getInteractionObject(closeObject);
         if (GrabbingInfo.shouldGrab(InteractionController.grabbingInfoSettings, _leapHand, interactionObject))
         {
             _isGrabbingObject = true;
             _grabbedObject    = interactionObject;
             _cachedRigidbody  = _grabbedObject.rigidbody;
             connectAllFingerPoints(_grabbedObject, InteractionPointConnectMethod.SURFACE);
             connectBasisPoints(_grabbedObject);
             DebugGraph.Write("Grabbed");
             return(true);
         }
     }
     return(false);
 }