Esempio n. 1
0
        protected virtual bool IsObjectGrabbable(GameObject obj)
        {
            VRTK_InteractableObject objScript = obj.GetComponent <VRTK_InteractableObject>();

            return(interactTouch != null && interactTouch.IsObjectInteractable(obj) && objScript != null && (objScript.isGrabbable || objScript.PerformSecondaryAction()));
        }
Esempio n. 2
0
        // Token: 0x06001599 RID: 5529 RVA: 0x000769C4 File Offset: 0x00074BC4
        protected virtual bool IsObjectGrabbable(GameObject obj)
        {
            VRTK_InteractableObject component = obj.GetComponent <VRTK_InteractableObject>();

            return(this.interactTouch != null && this.interactTouch.IsObjectInteractable(obj) && component != null && (component.isGrabbable || component.PerformSecondaryAction()));
        }