/// <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); } } }
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); } }