Showing
2 changed files
with
21 additions
and
1 deletions
| ... | @@ -2127,6 +2127,8 @@ MonoBehaviour: | ... | @@ -2127,6 +2127,8 @@ MonoBehaviour: |
| 2127 | HipBalance: {fileID: 64300837} | 2127 | HipBalance: {fileID: 64300837} |
| 2128 | PullHipBack: {fileID: 469119556} | 2128 | PullHipBack: {fileID: 469119556} |
| 2129 | Great: {fileID: 1784424919} | 2129 | Great: {fileID: 1784424919} |
| 2130 | + Trainner_count: {fileID: 433964839} | ||
| 2131 | + Trainee_count: {fileID: 22123171} | ||
| 2130 | count3: {fileID: 1983785836} | 2132 | count3: {fileID: 1983785836} |
| 2131 | count2: {fileID: 132265372} | 2133 | count2: {fileID: 132265372} |
| 2132 | count1: {fileID: 1606945878} | 2134 | count1: {fileID: 1606945878} | ... | ... |
| ... | @@ -59,6 +59,9 @@ public class Move : MonoBehaviour | ... | @@ -59,6 +59,9 @@ public class Move : MonoBehaviour |
| 59 | public Text PullHipBack; | 59 | public Text PullHipBack; |
| 60 | public Text Great; | 60 | public Text Great; |
| 61 | 61 | ||
| 62 | + public Text Trainner_count, Trainee_count; | ||
| 63 | + string trainercnt, traineecnt; | ||
| 64 | + | ||
| 62 | string hipbal, leftkneewarning, rightkneewarning, leftsidehighkick, rightsidehighkick; | 65 | string hipbal, leftkneewarning, rightkneewarning, leftsidehighkick, rightsidehighkick; |
| 63 | string spinestraight, pullhipback, great; | 66 | string spinestraight, pullhipback, great; |
| 64 | 67 | ||
| ... | @@ -80,6 +83,8 @@ public class Move : MonoBehaviour | ... | @@ -80,6 +83,8 @@ public class Move : MonoBehaviour |
| 80 | public GameObject Squat_Instruction, SideHighKick_Instruction, Lunge_Left_Instruction, Lunge_Right_Instruction; | 83 | public GameObject Squat_Instruction, SideHighKick_Instruction, Lunge_Left_Instruction, Lunge_Right_Instruction; |
| 81 | public GameObject Right_Start; | 84 | public GameObject Right_Start; |
| 82 | 85 | ||
| 86 | + int total; | ||
| 87 | + | ||
| 83 | //lsy | 88 | //lsy |
| 84 | void Trainer_Run() | 89 | void Trainer_Run() |
| 85 | { | 90 | { |
| ... | @@ -101,16 +106,22 @@ public class Move : MonoBehaviour | ... | @@ -101,16 +106,22 @@ public class Move : MonoBehaviour |
| 101 | { | 106 | { |
| 102 | trainer_count++; | 107 | trainer_count++; |
| 103 | Debug.Log("카운트 : " + trainer_count); | 108 | Debug.Log("카운트 : " + trainer_count); |
| 109 | + trainercnt = trainer_count + "/20"; | ||
| 110 | + Trainner_count.text = trainercnt; | ||
| 104 | } | 111 | } |
| 105 | if (trainer_count < 10 && exercise == "SideHiKick") | 112 | if (trainer_count < 10 && exercise == "SideHiKick") |
| 106 | { | 113 | { |
| 107 | trainer_count++; | 114 | trainer_count++; |
| 108 | Debug.Log("카운트 : " + trainer_count); | 115 | Debug.Log("카운트 : " + trainer_count); |
| 116 | + trainercnt = trainer_count + "/10"; | ||
| 117 | + Trainner_count.text = trainercnt; | ||
| 109 | } | 118 | } |
| 110 | if (trainer_count < 10 && exercise == "Lunge") | 119 | if (trainer_count < 10 && exercise == "Lunge") |
| 111 | { | 120 | { |
| 112 | trainer_count++; | 121 | trainer_count++; |
| 113 | Debug.Log("카운트 : " + trainer_count); | 122 | Debug.Log("카운트 : " + trainer_count); |
| 123 | + trainercnt = trainer_count + "/10"; | ||
| 124 | + Trainner_count.text = trainercnt; | ||
| 114 | } | 125 | } |
| 115 | if (trainer_count >= 20 && exercise == "Squat") | 126 | if (trainer_count >= 20 && exercise == "Squat") |
| 116 | { | 127 | { |
| ... | @@ -213,26 +224,33 @@ public class Move : MonoBehaviour | ... | @@ -213,26 +224,33 @@ public class Move : MonoBehaviour |
| 213 | 224 | ||
| 214 | workout_flag = 0; | 225 | workout_flag = 0; |
| 215 | workout_flag2 = 0; | 226 | workout_flag2 = 0; |
| 227 | + total = 20; | ||
| 216 | } | 228 | } |
| 217 | else if (exercise == "SideHiKick") | 229 | else if (exercise == "SideHiKick") |
| 218 | { | 230 | { |
| 219 | workout_flag = 0; | 231 | workout_flag = 0; |
| 232 | + total = 10; | ||
| 220 | 233 | ||
| 221 | } | 234 | } |
| 222 | else if (exercise == "Lunge") | 235 | else if (exercise == "Lunge") |
| 223 | { | 236 | { |
| 224 | workout_flag = 0; | 237 | workout_flag = 0; |
| 238 | + total = 10; | ||
| 225 | } | 239 | } |
| 226 | 240 | ||
| 227 | workout_count++; | 241 | workout_count++; |
| 228 | workout = false; | 242 | workout = false; |
| 229 | Debug.Log("트레이니: " + workout_count); | 243 | Debug.Log("트레이니: " + workout_count); |
| 230 | - | 244 | + trainercnt = workout_count + "/" + total; |
| 245 | + Trainee_count.text = trainercnt; | ||
| 231 | } | 246 | } |
| 232 | 247 | ||
| 233 | void Start() | 248 | void Start() |
| 234 | { | 249 | { |
| 235 | timer = 0; | 250 | timer = 0; |
| 251 | + Trainner_count.text = ""; | ||
| 252 | + Trainee_count.text = ""; | ||
| 253 | + total = 20; | ||
| 236 | 254 | ||
| 237 | skeleton_Trainnner = new CharacterSkeleton(Trainnner); | 255 | skeleton_Trainnner = new CharacterSkeleton(Trainnner); |
| 238 | skeleton_Trainnne = new CharacterSkeleton(Trainnne); | 256 | skeleton_Trainnne = new CharacterSkeleton(Trainnne); | ... | ... |
-
Please register or login to post a comment