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
9a83270c
Commit
9a83270c
authored
May 12, 2019
by
18손재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
줌인/줌아웃 시 카메라 view 방식 전환
parent
590da1cf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
SampleScene.unity
Assets/Scenes/SampleScene.unity
+1
-1
CameraController.cs
Assets/Scripts/CameraController.cs
+2
-2
No files found.
Assets/Scenes/SampleScene.unity
View file @
9a83270c
...
...
@@ -233,7 +233,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
:
...
...
Assets/Scripts/CameraController.cs
View file @
9a83270c
...
...
@@ -51,10 +51,10 @@ public class CameraController : MonoBehaviour
Vector3
posDiff
=
(
player
.
head
.
transform
.
position
-
transform
.
position
)
/
50
;
Vector3
angleDiff
=
(
new
Vector3
(
0
,
transform
.
eulerAngles
.
y
,
0
)
-
transform
.
eulerAngles
)
/
50
;
previousPos
=
transform
.
position
;
Camera
.
main
.
orthographic
=
false
;
for
(
int
i
=
0
;
i
<
50
;
i
++)
{
yield
return
null
;
Debug
.
Log
(
transform
.
position
);
transform
.
position
+=
posDiff
;
transform
.
eulerAngles
+=
angleDiff
;
}
...
...
@@ -72,11 +72,11 @@ public class CameraController : MonoBehaviour
for
(
int
i
=
0
;
i
<
50
;
i
++)
{
yield
return
null
;
Debug
.
Log
(
transform
.
position
);
transform
.
position
+=
posDiff
;
transform
.
eulerAngles
+=
angleDiff
;
}
transform
.
position
=
previousPos
;
Camera
.
main
.
orthographic
=
true
;
PlayerController
.
inst
.
isPlayerShooting
=
false
;
}
...
...
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