고다경

Intro Scene에서 Quad를 GameObject follow로 수정 후 움직임 구현

...@@ -743,15 +743,15 @@ RectTransform: ...@@ -743,15 +743,15 @@ RectTransform:
743 m_PrefabAsset: {fileID: 0} 743 m_PrefabAsset: {fileID: 0}
744 m_GameObject: {fileID: 1153664853} 744 m_GameObject: {fileID: 1153664853}
745 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 745 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
746 - m_LocalPosition: {x: 0, y: 0, z: 500} 746 + m_LocalPosition: {x: 0, y: 0, z: 150}
747 - m_LocalScale: {x: 1, y: 1, z: 1} 747 + m_LocalScale: {x: 1, y: 1, z: 200}
748 m_Children: [] 748 m_Children: []
749 m_Father: {fileID: 1190618928} 749 m_Father: {fileID: 1190618928}
750 m_RootOrder: 4 750 m_RootOrder: 4
751 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 751 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
752 m_AnchorMin: {x: 0.5, y: 0.5} 752 m_AnchorMin: {x: 0.5, y: 0.5}
753 m_AnchorMax: {x: 0.5, y: 0.5} 753 m_AnchorMax: {x: 0.5, y: 0.5}
754 - m_AnchoredPosition: {x: 0, y: -100} 754 + m_AnchoredPosition: {x: 0, y: 10}
755 m_SizeDelta: {x: 50, y: 50} 755 m_SizeDelta: {x: 50, y: 50}
756 m_Pivot: {x: 0.5, y: 0.5} 756 m_Pivot: {x: 0.5, y: 0.5}
757 --- !u!114 &1153664855 757 --- !u!114 &1153664855
...@@ -802,7 +802,7 @@ MonoBehaviour: ...@@ -802,7 +802,7 @@ MonoBehaviour:
802 m_EditorClassIdentifier: 802 m_EditorClassIdentifier:
803 BodySrcManager: {fileID: 1330895655} 803 BodySrcManager: {fileID: 1330895655}
804 TrackedJoint: 11 804 TrackedJoint: 11
805 - multiplier: 10 805 + multiplier: 300
806 --- !u!1 &1190618924 806 --- !u!1 &1190618924
807 GameObject: 807 GameObject:
808 m_ObjectHideFlags: 0 808 m_ObjectHideFlags: 0
......
...@@ -49,7 +49,7 @@ public class DetectJoints : MonoBehaviour ...@@ -49,7 +49,7 @@ public class DetectJoints : MonoBehaviour
49 { 49 {
50 var pos = body.Joints[TrackedJoint].Position; 50 var pos = body.Joints[TrackedJoint].Position;
51 //gameObject.transform.position = new Vector3(pos.X*multiplier, pos.Y*multiplier); 51 //gameObject.transform.position = new Vector3(pos.X*multiplier, pos.Y*multiplier);
52 - gameObject.transform.position = new Vector3(pos.X * (multiplier+50), pos.Y * multiplier/3, multiplier/2); 52 + gameObject.transform.position = new Vector3(pos.X * multiplier * 2, pos.Y * multiplier, multiplier/2);
53 } 53 }
54 } 54 }
55 55
......
...@@ -9,14 +9,14 @@ public class Title : MonoBehaviour ...@@ -9,14 +9,14 @@ public class Title : MonoBehaviour
9 { 9 {
10 public string SceneToLoad; 10 public string SceneToLoad;
11 11
12 - GameObject quad; //커서 12 + GameObject follow; //커서
13 Vector3 pos; 13 Vector3 pos;
14 private float timer; 14 private float timer;
15 15
16 private void Start() 16 private void Start()
17 { 17 {
18 Debug.Log("Start"); 18 Debug.Log("Start");
19 - quad = GameObject.Find("follow").gameObject; 19 + follow = GameObject.Find("follow").gameObject;
20 } 20 }
21 21
22 public void LoadGame() 22 public void LoadGame()
...@@ -28,11 +28,11 @@ public class Title : MonoBehaviour ...@@ -28,11 +28,11 @@ public class Title : MonoBehaviour
28 { 28 {
29 Debug.Log("Update"); 29 Debug.Log("Update");
30 30
31 - pos = quad.transform.position; 31 + pos = follow.transform.position;
32 Debug.Log(pos); 32 Debug.Log(pos);
33 33
34 34
35 - if (pos.x >= 145 && pos.x <= 195 && pos.y >= -18 && pos.y <= -10) { 35 + if (pos.x >= 340 && pos.x <= 600 && pos.y >= 175 && pos.y <= 224 &&pos.z == 150) {
36 timer += Time.deltaTime; 36 timer += Time.deltaTime;
37 Debug.Log("Timer: "+ timer); 37 Debug.Log("Timer: "+ timer);
38 38
......