Ejemplo n.º 1
0
        public void Proof(float time)
        {
            try
            {
                foreach (BaseGesture gesture in gestures)
                {
                    switch (gesture.State)
                    {
                    case GestureStates.NotAdded:
                        gesture.Proof(time);
                        break;

                    case GestureStates.Add:
                        Marker marker = viewManager.AddMarker(gesture, indicatorVelocityMS);
                        gesture.AddMarker(marker);
                        gesture.SetState(GestureStates.PreReady);
                        break;

                    case GestureStates.PreReady:
                        gesture.Proof(time);
                        break;

                    case GestureStates.Ready:
                        gesture.SetActive();
                        gesture.Proof(time);
                        break;
                    }
                }
            }
            catch (Exception e)
            {
                throw e;
            }
        }