고다경

RESULT 에서 운동횟수 보여주기

...@@ -60,7 +60,9 @@ public class Move : MonoBehaviour ...@@ -60,7 +60,9 @@ public class Move : MonoBehaviour
60 public Text Great; 60 public Text Great;
61 61
62 public Text Trainner_count, Trainee_count; 62 public Text Trainner_count, Trainee_count;
63 - public static string trainercnt, traineecnt; 63 + string trainercnt;
64 + public static string traineecnt;
65 +
64 66
65 string hipbal, leftkneewarning, rightkneewarning, leftsidehighkick, rightsidehighkick; 67 string hipbal, leftkneewarning, rightkneewarning, leftsidehighkick, rightsidehighkick;
66 string spinestraight, pullhipback, great; 68 string spinestraight, pullhipback, great;
...@@ -237,11 +239,10 @@ public class Move : MonoBehaviour ...@@ -237,11 +239,10 @@ public class Move : MonoBehaviour
237 workout_flag = 0; 239 workout_flag = 0;
238 total = 10; 240 total = 10;
239 } 241 }
240 -
241 workout_count++; 242 workout_count++;
242 workout = false; 243 workout = false;
243 Debug.Log("트레이니: " + workout_count); 244 Debug.Log("트레이니: " + workout_count);
244 - trainercnt = workout_count + "/" + total; 245 + traineecnt = workout_count + "/" + total;
245 Trainee_count.text = trainercnt; 246 Trainee_count.text = trainercnt;
246 } 247 }
247 248
......