private void comprobarGestos()
        {
            for (int i = 0; i < myStates.Count; i++)
            {
                // Reconocimiento de estados para usuario 1
                if (myMiddle.getState(0).Equals(myMiddle.DETECTADO) && myStates[i].cumple(myAvatarUser1.getHumanSkeleton()))
                {
                    gestosCompletadosUser1++;
                    if (logBefore1 != myStates[i].getStateName())
                    {
                        formGesture.addLogList1("[STATE] " + myStates[i].getStateName());
                        logBefore1 = myStates[i].getStateName();
                    }
                }
                // Reconocimiento de estados para usuario 2
                if (myMiddle.getState(1).Equals(myMiddle.DETECTADO) && myStates[i].cumple(myAvatarUser2.getHumanSkeleton()))
                {
                    gestosCompletadosUser2++;
                    if (logBefore2 != myStates[i].getStateName())
                    {
                        formGesture.addLogList2("[STATE] " + myStates[i].getStateName());
                        logBefore2 = myStates[i].getStateName();
                    }
                }
                // Reconocimiento de estados para ambos usuarios
                if (myMiddle.getState(0).Equals(myMiddle.DETECTADO) && myMiddle.getState(1).Equals(myMiddle.DETECTADO) && myStates[i].cumple(myAvatarUser1.getHumanSkeleton(), myAvatarUser2.getHumanSkeleton()))
                {
                    gestosCompletadosTwoUsers++;
                    if (logBefore3 != myStates[i].getStateName())
                    {
                        formGesture.addLogList3("[STATE] " + myStates[i].getStateName());
                        logBefore3 = myStates[i].getStateName();
                    }
                }
            }

            for (int i = 0; i < myGestures.Count; i++)
            {
                // Reconocimiento de gestos para usuario 1
                if (myMiddle.getState(0).Equals(myMiddle.DETECTADO) && myGestures[i].cumple(myAvatarUser1.getHumanSkeleton()))
                {
                    gestosCompletadosUser1++;
                    if (logBefore1 != myGestures[i].getGestureName())
                    {
                        formGesture.addLogList1("[GESTURE] " + myGestures[i].getGestureName());
                        logBefore1 = myGestures[i].getGestureName();
                    }
                }
                // Reconocimiento de gestos para usuario 2
                if (myMiddle.getState(1).Equals(myMiddle.DETECTADO) && myGestures[i].cumple(myAvatarUser2.getHumanSkeleton()))
                {
                    gestosCompletadosUser2++;
                    if (logBefore2 != myGestures[i].getGestureName())
                    {
                        formGesture.addLogList2("[GESTURE] " + myGestures[i].getGestureName());
                        logBefore2 = myGestures[i].getGestureName();
                    }
                }
            }
        }
        private void comprobarGestos()
        {
            for (int i = 0; i < myStates.Count; i++)
            {
                if (myStates[i].cumple(mySkeletonTeacher))
                {
                    gestosCompletadosTeacher++;

                    if (logBefore1 != myStates[i].getStateName())
                    {
                        formGesture.addLogList1("[STATE] " + myStates[i].getStateName());
                        logBefore1 = myStates[i].getStateName();
                    }

                    if (myMiddle.getState(0).Equals(myMiddle.DETECTADO) && myStates[i].cumple(mySkeletonUser1))
                    {
                        gestosCompletadosUser1++;
                        if (logBefore2 != myStates[i].getStateName())
                        {
                            formGesture.addLogList2("[STATE] " + myStates[i].getStateName());
                            logBefore2 = myStates[i].getStateName();
                        }
                    }

                    if (myMiddle.getState(1).Equals(myMiddle.DETECTADO) && myStates[i].cumple(mySkeletonUser2))
                    {
                        gestosCompletadosUser2++;
                        if (logBefore3 != myStates[i].getStateName())
                        {
                            formGesture.addLogList3("[STATE] " + myStates[i].getStateName());
                            logBefore3 = myStates[i].getStateName();
                        }
                    }
                }
            }

            for (int i = 0; i < myGestures.Count; i++)
            {
                if (myGestures[i].cumple(mySkeletonTeacher))
                {
                    gestosCompletadosTeacher++;

                    if (logBefore1 != myGestures[i].getGestureName())
                    {
                        formGesture.addLogList1("[GESTURE] " + myGestures[i].getGestureName());
                        logBefore1 = myGestures[i].getGestureName();
                    }

                    if (myMiddle.getState(0).Equals(myMiddle.DETECTADO) && myGestures[i].cumple(mySkeletonUser1))
                    {
                        gestosCompletadosUser1++;
                        if (logBefore2 != myGestures[i].getGestureName())
                        {
                            formGesture.addLogList2("[GESTURE] " + myGestures[i].getGestureName());
                            logBefore2 = myGestures[i].getGestureName();
                        }
                    }

                    if (myMiddle.getState(1).Equals(myMiddle.DETECTADO) && myGestures[i].cumple(mySkeletonUser2))
                    {
                        gestosCompletadosUser2++;
                        if (logBefore3 != myGestures[i].getGestureName())
                        {
                            formGesture.addLogList3("[GESTURE] " + myGestures[i].getGestureName());
                            logBefore3 = myGestures[i].getGestureName();
                        }
                    }
                }
            }
        }