Kinect.KinectManager.ResetPlayerGestures C# (CSharp) Method

ResetPlayerGestures() public method

Resets the gesture states for all gestures of the specified user.
public ResetPlayerGestures ( Int64 UserId ) : void
UserId Int64 User ID
return void
        public void ResetPlayerGestures(Int64 UserId)
        {
            List<KinectGestures.GestureData> gesturesData = playerGesturesData.ContainsKey(UserId) ? playerGesturesData[UserId] : null;

            if (gesturesData != null)
            {
                int listSize = gesturesData.Count;

                for (int i = 0; i < listSize; i++)
                {
                    ResetGesture(UserId, gesturesData[i].gesture);
                }
            }
        }
KinectManager