Commit b9870243 authored by 18손재민's avatar 18손재민

카메라 워크 wip

parent 3054cc3c
......@@ -60,7 +60,7 @@ MeshRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 2100000, guid: 217b848b6a9bd7145af70d4258c38bd7, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
......
......@@ -210,6 +210,7 @@ GameObject:
- component: {fileID: 534669905}
- component: {fileID: 534669904}
- component: {fileID: 534669903}
- component: {fileID: 534669906}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
......@@ -250,7 +251,7 @@ Camera:
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic: 1
orthographic size: 5
m_Depth: -1
m_CullingMask:
......@@ -274,13 +275,25 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 534669902}
m_LocalRotation: {x: 0.5735764, y: -0, z: -0, w: 0.8191521}
m_LocalPosition: {x: 2.77, y: 11, z: 0}
m_LocalRotation: {x: 0.23911765, y: 0.3696438, z: -0.09904577, w: 0.89239913}
m_LocalPosition: {x: -5, y: 10, z: -5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 70, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 30, y: 45, z: 0}
--- !u!114 &534669906
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 534669902}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c7d507df55441f7438f6f059e9d2587c, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1513534067 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 1444571408487427165, guid: 0b18400fb62a12d4e9cb5fbb8ecbb53f,
......@@ -941,5 +954,10 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8862060874303168217, guid: 6ba287375b5ad4b458a7b7b99c6d6a08,
type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 6ba287375b5ad4b458a7b7b99c6d6a08, type: 3}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraController : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
float horizontalInput = Input.GetAxis("Horizontal");
float verticalInput = Input.GetAxis("Vertical");
transform.position += new Vector3(verticalInput + horizontalInput, 0, verticalInput - horizontalInput);
}
}
fileFormatVersion: 2
guid: c7d507df55441f7438f6f059e9d2587c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
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