고다경

운동 횟수 카운트 재수정

......@@ -125,6 +125,19 @@ public class Move : MonoBehaviour
void Trainee_Count() {
if (exercise == "Squat") {
workout_flag = 0;
workout_flag2 = 0;
}
else if (exercise == "SideHiKick") {
workout_flag = 0;
}
else if (exercise == "Lunge") {
workout_flag = 0;
}
workout_count++;
workout = false;
......@@ -425,7 +438,8 @@ public class Move : MonoBehaviour
}
////////////운동 횟수 카운트//////////////////////
if (ReadAngles[3] < 95 && ReadAngles[4] < 95 && workout && workout_flag >= 95)
if (ReadAngles[3] < 95 && ReadAngles[4] < 95 && workout
&& workout_flag >= 95 && workout_flag2 >= 95)
{
Trainee_Count();
}
......