예제 #1
0
        /// <summary>
        /// Recognize the specified gesture.
        /// </summary>
        /// <param name="gesture">Gesture.</param>
        private void Recognize()
        {
            if (points.Count > 2)
            {
                Gesture gesture = CreateGesture();
                Result  result  = library.Recognize(gesture);

                isRecognized = true;

                if (OnGestureRecognition != null)
                {
                    OnGestureRecognition(gesture, result);
                }
            }
        }
예제 #2
0
        private void Recognize()
        {
            Debug.Log("Recognize");
            if (points.Count < minimumPointsToRecognize)
            {
                ClearGesture();
                return;
            }

            Gesture gesture = CreateGesture();
            Result  result  = library.Recognize(gesture);

            isRecognized = true;

            if (OnGestureRecognition != null)
            {
                OnGestureRecognition(gesture, result);
            }
        }