Пример #1
0
        private void Awake()
        {
            if (GetComponent <VRTK_InteractTouch>() == null)
            {
                Debug.LogError("VRTK_InteractUse is required to be attached to a Controller that has the VRTK_InteractTouch script attached to it");
                return;
            }

            interactTouch     = GetComponent <VRTK_InteractTouch>();
            controllerActions = GetComponent <VRTK_ControllerActions>();
        }