Inheritance: UnityEngine.MonoBehaviour
示例#1
0
        private void Awake()
        {
            Instance = this;
            VRIInteractables.Initialize();

            ColliderToHandMapping = new Dictionary <Collider, VRIHand>();
        }
示例#2
0
        public static void Deregister(VRIInteractable interactable)
        {
            VRIPlayer.DeregisterInteractable(interactable);

            ColliderMapping = ColliderMapping.Where(mapping => mapping.Value != interactable).ToDictionary(mapping => mapping.Key, mapping => mapping.Value);
            VRIInteractableMapping.Remove(interactable);
        }
        private void Awake()
        {
            Instance = this;
            VRIInteractables.Initialize();

            ColliderToHandMapping = new Dictionary<Collider, VRIHand>();
        }