이상윤

count

......@@ -39,6 +39,7 @@ public class Move : MonoBehaviour
public float[] trainer_data1;
public int[] trainer_state;
public int speed = 0;
public int trainer_count = 0;
//lsy end
public Text AngleLeftKnee;
......@@ -73,6 +74,8 @@ public class Move : MonoBehaviour
//Thread.Sleep(50);
if (trainer_j >= lines.Length - 3)
{
trainer_count++;
Debug.Log("카운트 : " + trainer_count);
trainer_j = 0;
return;
}
......@@ -114,8 +117,8 @@ public class Move : MonoBehaviour
}
else
{
Debug.Log("다음");
Debug.Log(trainer_j);
// Debug.Log("다음");
// Debug.Log(trainer_j);
speed = 0;
}
......@@ -176,7 +179,8 @@ public class Move : MonoBehaviour
Debug.Log("읽음");
}
else {
lines = File.ReadAllLines(@"Trainer_txt/squart.txt");
lines = File.ReadAllLines(@"Trainer_txt/leg_left.txt");
Debug.Log("읽음");
}
......@@ -229,7 +233,7 @@ public class Move : MonoBehaviour
{
timer += Time.deltaTime;
Debug.Log("Timer: " + timer);
//Debug.Log("Timer: " + timer);
if (timer < 1)
{
count3.SetActive(true);
......