public bool IsGestureCancelled(Int64 UserId, KinectGestures.Gestures gesture)
{
List<KinectGestures.GestureData> gesturesData = playerGesturesData.ContainsKey(UserId) ? playerGesturesData[UserId] : null;
int index = gesturesData != null ? GetGestureIndex(gesture, ref gesturesData) : -1;
if (index >= 0)
{
KinectGestures.GestureData gestureData = gesturesData[index];
return gestureData.cancelled;
}
return false;
}