private void OnEnable()
        {
            _wearableControl.GestureDetected += GestureDetected;

            if (_gesture != GestureId.None)
            {
                _requirement.EnableGesture(_gesture);
            }
        }
Beispiel #2
0
        private void Awake()
        {
            _wearableControl = WearableControl.Instance;
            _wearableControl.GestureDetected += GestureDetected;

            // Establish a requirement for the referenced gesture.
            _requirement = gameObject.AddComponent <WearableRequirement>();

            if (_gesture != GestureId.None)
            {
                _requirement.EnableGesture(_gesture);
            }
        }