Exemplo n.º 1
0
        private bool IsObjectGrabbable(GameObject obj)
        {
            var objScript = obj.GetComponent <VRTK_InteractableObject>();

            return(interactTouch.IsObjectInteractable(obj) && objScript && (objScript.isGrabbable || objScript.PerformSecondaryAction()));
        }
Exemplo n.º 2
0
 private bool IsObjectGrabbable(GameObject obj)
 {
     return(interactTouch.IsObjectInteractable(obj) && obj.GetComponent <VRTK_InteractableObject>().isGrabbable);
 }
Exemplo n.º 3
0
        protected virtual bool IsObjectUsable(GameObject obj)
        {
            VRTK_InteractableObject objScript = (obj != null ? obj.GetComponent <VRTK_InteractableObject>() : null);

            return(obj != null && interactTouch != null && interactTouch.IsObjectInteractable(obj) && objScript != null && objScript.isUsable);
        }
Exemplo n.º 4
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()));
        }
Exemplo n.º 5
0
 protected virtual bool IsObjectUsable(GameObject obj)
 {
     return(interactTouch.IsObjectInteractable(obj) && obj.GetComponent <VRTK_InteractableObject>().isUsable);
 }