UPDATE(KinectUtils)

pull/19/head
Johan LACHENAL 1 year ago
parent 92fd4e5e16
commit e33c10ed5b

@ -24,10 +24,13 @@ namespace KinectUtils
static public void AddGestures(params BaseGesture[] gestures) static public void AddGestures(params BaseGesture[] gestures)
{ {
foreach (var gesture in gestures) foreach (var gesture in gestures)
{
if (!gestures.Contains(gesture))
{ {
KnownGestures.Add(gesture); KnownGestures.Add(gesture);
} }
} }
}
static public void RemoveGesture(BaseGesture gesture) static public void RemoveGesture(BaseGesture gesture)
{ {
KnownGestures.Remove(gesture); KnownGestures.Remove(gesture);
@ -51,10 +54,7 @@ namespace KinectUtils
{ {
foreach(var gesture in KnownGestures) foreach(var gesture in KnownGestures)
{ {
if (gesture.TestGesture(body)) gesture.TestGesture(body);
{
}
} }
} }
} }

Loading…
Cancel
Save