이상윤

trainer

...@@ -334,7 +334,7 @@ class CharacterSkeleton ...@@ -334,7 +334,7 @@ class CharacterSkeleton
334 { 334 {
335 Vector3 m = joint[JointType_SpineBase]; 335 Vector3 m = joint[JointType_SpineBase];
336 336
337 - if (mirrored) m = new Vector3(-7, m.y-9, -2); 337 + if (mirrored) m = new Vector3(-2, m.y-9, -2);
338 humanoid.transform.position = m; 338 humanoid.transform.position = m;
339 } 339 }
340 } 340 }
......
...@@ -37,8 +37,9 @@ public class Move : MonoBehaviour ...@@ -37,8 +37,9 @@ public class Move : MonoBehaviour
37 public int trainer_j = 0; 37 public int trainer_j = 0;
38 public float[] trainer_data1; 38 public float[] trainer_data1;
39 public int[] trainer_state; 39 public int[] trainer_state;
40 + public int speed = 0;
40 //lsy end 41 //lsy end
41 - 42 +
42 public Text AngleLeftKnee; 43 public Text AngleLeftKnee;
43 public Text AngleRightKnee; 44 public Text AngleRightKnee;
44 public Text KneeToeLeft; 45 public Text KneeToeLeft;
...@@ -67,6 +68,7 @@ public class Move : MonoBehaviour ...@@ -67,6 +68,7 @@ public class Move : MonoBehaviour
67 //lsy 68 //lsy
68 void Trainer_Run() 69 void Trainer_Run()
69 { 70 {
71 + //Thread.Sleep(50);
70 if (trainer_j >= lines.Length - 3) 72 if (trainer_j >= lines.Length - 3)
71 { 73 {
72 trainer_j = 0; 74 trainer_j = 0;
...@@ -75,7 +77,7 @@ public class Move : MonoBehaviour ...@@ -75,7 +77,7 @@ public class Move : MonoBehaviour
75 trainer_i = -1; 77 trainer_i = -1;
76 trainer_data1 = new float[bodyCount * jointCount * 3]; 78 trainer_data1 = new float[bodyCount * jointCount * 3];
77 trainer_state = new int[bodyCount * jointCount]; 79 trainer_state = new int[bodyCount * jointCount];
78 - Debug.Log("초기화"); 80 + //Debug.Log("초기화");
79 //Thread.Sleep(5000); 81 //Thread.Sleep(5000);
80 for (int k = 0; k < 25; k++) 82 for (int k = 0; k < 25; k++)
81 { 83 {
...@@ -103,6 +105,18 @@ public class Move : MonoBehaviour ...@@ -103,6 +105,18 @@ public class Move : MonoBehaviour
103 //Debug.Log("메모라인 : " + trainer_j); 105 //Debug.Log("메모라인 : " + trainer_j);
104 trainer_j = trainer_j + 3; 106 trainer_j = trainer_j + 3;
105 } 107 }
108 + if (speed < 5)
109 + {
110 + trainer_j -= 75;
111 + speed++;
112 + }
113 + else
114 + {
115 + Debug.Log("다음");
116 + Debug.Log(trainer_j);
117 + speed = 0;
118 +
119 + }
106 //Debug.Log("탈출!======================================================"); 120 //Debug.Log("탈출!======================================================");
107 } 121 }
108 //lsy end 122 //lsy end
...@@ -117,7 +131,7 @@ public class Move : MonoBehaviour ...@@ -117,7 +131,7 @@ public class Move : MonoBehaviour
117 //lsy 131 //lsy
118 trainer_state = new int[bodyCount * jointCount]; 132 trainer_state = new int[bodyCount * jointCount];
119 trainer_data1 = new float[bodyCount * jointCount * 3]; 133 trainer_data1 = new float[bodyCount * jointCount * 3];
120 - lines = File.ReadAllLines(@"Trainer_txt/squart.txt"); 134 + lines = File.ReadAllLines(@"Trainer_txt/runzi_left.txt");
121 Debug.Log("읽음"); 135 Debug.Log("읽음");
122 //lsy end 136 //lsy end
123 137
......