/// <summary> /// Calls the current interactable object's release method, if the controller trigger is released /// </summary> void InteractEnd() { if (joint.connectedBody != null) { joint.connectedBody.gameObject.GetComponentInChildren <InteractableItem>().OnObjectInteractRelease(this.gameObject, anim); } if (_currentItem != null) { if (_currentItem.gameObject.GetComponent <TwoHandedItem>()) { _currentItem.OnObjectInteractRelease(this.gameObject, anim); } } else { anim.SetBool("CloseHand", false); //Remove collisions if back to an open hand GetComponent <Collider> ().isTrigger = true; } }