using System.Collections; using System.Collections.Generic; using UnityEngine; using VRTK; //VR可抓取物体控制组件 public class VRTKGrabbedCtrl { VRTK_InteractableObject interactableObject; public void SetInteractable(bool interactable) { interactableObject.isGrabbable = false; } public void SetUseInteractable(bool interactable) { interactableObject.isUsable = interactable; } public VRTKGrabbedCtrl(Transform transform) { interactableObject = transform.GetComponentInChildren(); } }