Inheritance: UnityEngine.MonoBehaviour
        private void Awake()
        {
            Instance = this;
            VRIInteractables.Initialize();

            ColliderToHandMapping = new Dictionary <Collider, VRIHand>();
        }
Exemple #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>();
        }