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