Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
man-in-the-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MIM
man-in-the-mirror
Commits
b9870243
Commit
b9870243
authored
Mar 22, 2019
by
18손재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
카메라 워크 wip
parent
3054cc3c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
5 deletions
+54
-5
Player.prefab
Assets/Prefabs/Player.prefab
+1
-1
SampleScene.unity
Assets/Scenes/SampleScene.unity
+22
-4
CameraController.cs
Assets/Scripts/CameraController.cs
+20
-0
CameraController.cs.meta
Assets/Scripts/CameraController.cs.meta
+11
-0
No files found.
Assets/Prefabs/Player.prefab
View file @
b9870243
...
...
@@ -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
...
...
Assets/Scenes/SampleScene.unity
View file @
b9870243
...
...
@@ -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
}
Assets/Scripts/CameraController.cs
0 → 100644
View file @
b9870243
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
);
}
}
Assets/Scripts/CameraController.cs.meta
0 → 100644
View file @
b9870243
fileFormatVersion: 2
guid: c7d507df55441f7438f6f059e9d2587c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment