Commit 29bd902f authored by 16도재형's avatar 16도재형

카메라 플레이어 위치보게 땜빵 해놓음

parent 8f3ce47a
fileFormatVersion: 2
guid: 0aa1c86779a88b84fb24b8cbe899753a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
...@@ -468,7 +468,7 @@ Transform: ...@@ -468,7 +468,7 @@ Transform:
m_PrefabInternal: {fileID: 0} m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 519420028} m_GameObject: {fileID: 519420028}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 6.08, y: 3.21, z: -10} m_LocalPosition: {x: 6.08, y: 3.21, z: -1}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
......
...@@ -6,7 +6,7 @@ public class CameraController : MonoBehaviour { ...@@ -6,7 +6,7 @@ public class CameraController : MonoBehaviour {
/* /*
* If camera is in Tetris view, ideal position is (108, 240, -2) * If camera is in Tetris view, ideal position is (108, 240, -1)
* size 300 * size 300
* */ * */
...@@ -55,6 +55,10 @@ public class CameraController : MonoBehaviour { ...@@ -55,6 +55,10 @@ public class CameraController : MonoBehaviour {
void GotoDestination() void GotoDestination()
{ {
// TODO: Change this.
Vector3 pos = GameObject.Find("Player").transform.position;
pos.z = -1;
transform.position = pos;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment