示例#1
0
        private bool IsObjectGrabbable(GameObject obj)
        {
            var objScript = obj.GetComponent <VRTK_InteractableObject>();

            return(interactTouch.IsObjectInteractable(obj) && objScript && (objScript.isGrabbable || objScript.PerformSecondaryAction()));
        }
示例#2
0
 private bool IsObjectGrabbable(GameObject obj)
 {
     return(interactTouch.IsObjectInteractable(obj) && obj.GetComponent <VRTK_InteractableObject>().isGrabbable);
 }
示例#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);
        }
示例#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()));
        }
示例#5
0
 protected virtual bool IsObjectUsable(GameObject obj)
 {
     return(interactTouch.IsObjectInteractable(obj) && obj.GetComponent <VRTK_InteractableObject>().isUsable);
 }