이상윤

count

...@@ -39,6 +39,7 @@ public class Move : MonoBehaviour ...@@ -39,6 +39,7 @@ public class Move : MonoBehaviour
39 public float[] trainer_data1; 39 public float[] trainer_data1;
40 public int[] trainer_state; 40 public int[] trainer_state;
41 public int speed = 0; 41 public int speed = 0;
42 + public int trainer_count = 0;
42 //lsy end 43 //lsy end
43 44
44 public Text AngleLeftKnee; 45 public Text AngleLeftKnee;
...@@ -73,6 +74,8 @@ public class Move : MonoBehaviour ...@@ -73,6 +74,8 @@ public class Move : MonoBehaviour
73 //Thread.Sleep(50); 74 //Thread.Sleep(50);
74 if (trainer_j >= lines.Length - 3) 75 if (trainer_j >= lines.Length - 3)
75 { 76 {
77 + trainer_count++;
78 + Debug.Log("카운트 : " + trainer_count);
76 trainer_j = 0; 79 trainer_j = 0;
77 return; 80 return;
78 } 81 }
...@@ -114,8 +117,8 @@ public class Move : MonoBehaviour ...@@ -114,8 +117,8 @@ public class Move : MonoBehaviour
114 } 117 }
115 else 118 else
116 { 119 {
117 - Debug.Log("다음"); 120 + // Debug.Log("다음");
118 - Debug.Log(trainer_j); 121 + // Debug.Log(trainer_j);
119 speed = 0; 122 speed = 0;
120 123
121 } 124 }
...@@ -176,7 +179,8 @@ public class Move : MonoBehaviour ...@@ -176,7 +179,8 @@ public class Move : MonoBehaviour
176 Debug.Log("읽음"); 179 Debug.Log("읽음");
177 } 180 }
178 else { 181 else {
179 - lines = File.ReadAllLines(@"Trainer_txt/squart.txt"); 182 +
183 + lines = File.ReadAllLines(@"Trainer_txt/leg_left.txt");
180 Debug.Log("읽음"); 184 Debug.Log("읽음");
181 } 185 }
182 186
...@@ -229,7 +233,7 @@ public class Move : MonoBehaviour ...@@ -229,7 +233,7 @@ public class Move : MonoBehaviour
229 { 233 {
230 234
231 timer += Time.deltaTime; 235 timer += Time.deltaTime;
232 - Debug.Log("Timer: " + timer); 236 + //Debug.Log("Timer: " + timer);
233 if (timer < 1) 237 if (timer < 1)
234 { 238 {
235 count3.SetActive(true); 239 count3.SetActive(true);
......