이상윤

trainer

......@@ -334,7 +334,7 @@ class CharacterSkeleton
{
Vector3 m = joint[JointType_SpineBase];
if (mirrored) m = new Vector3(-7, m.y-9, -2);
if (mirrored) m = new Vector3(-2, m.y-9, -2);
humanoid.transform.position = m;
}
}
......
......@@ -37,8 +37,9 @@ public class Move : MonoBehaviour
public int trainer_j = 0;
public float[] trainer_data1;
public int[] trainer_state;
public int speed = 0;
//lsy end
public Text AngleLeftKnee;
public Text AngleRightKnee;
public Text KneeToeLeft;
......@@ -67,6 +68,7 @@ public class Move : MonoBehaviour
//lsy
void Trainer_Run()
{
//Thread.Sleep(50);
if (trainer_j >= lines.Length - 3)
{
trainer_j = 0;
......@@ -75,7 +77,7 @@ public class Move : MonoBehaviour
trainer_i = -1;
trainer_data1 = new float[bodyCount * jointCount * 3];
trainer_state = new int[bodyCount * jointCount];
Debug.Log("초기화");
//Debug.Log("초기화");
//Thread.Sleep(5000);
for (int k = 0; k < 25; k++)
{
......@@ -103,6 +105,18 @@ public class Move : MonoBehaviour
//Debug.Log("메모라인 : " + trainer_j);
trainer_j = trainer_j + 3;
}
if (speed < 5)
{
trainer_j -= 75;
speed++;
}
else
{
Debug.Log("다음");
Debug.Log(trainer_j);
speed = 0;
}
//Debug.Log("탈출!======================================================");
}
//lsy end
......@@ -117,7 +131,7 @@ public class Move : MonoBehaviour
//lsy
trainer_state = new int[bodyCount * jointCount];
trainer_data1 = new float[bodyCount * jointCount * 3];
lines = File.ReadAllLines(@"Trainer_txt/squart.txt");
lines = File.ReadAllLines(@"Trainer_txt/runzi_left.txt");
Debug.Log("읽음");
//lsy end
......