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
f2f7a852
Commit
f2f7a852
authored
Jun 23, 2019
by
18손재민
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/player'
parents
34405def
649d0f62
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
CameraController.cs
Assets/Scripts/CameraController.cs
+7
-0
No files found.
Assets/Scripts/CameraController.cs
View file @
f2f7a852
...
...
@@ -80,6 +80,9 @@ public class CameraController : MonoBehaviour
player
.
anim
.
SetBool
(
"isShooting"
,
true
);
player
.
head
.
transform
.
Find
(
"Head 19"
).
gameObject
.
layer
=
LayerMask
.
NameToLayer
(
"Head"
);
// Invisible mouse cursor
Cursor
.
visible
=
false
;
Cursor
.
lockState
=
CursorLockMode
.
Locked
;
}
/// <summary>
/// Zoom out from player.
...
...
@@ -111,6 +114,10 @@ public class CameraController : MonoBehaviour
transform
.
position
=
previousPos
;
PlayerController
.
inst
.
isPlayerShooting
=
false
;
PlayerController
.
inst
.
isZooming
=
false
;
// Visible mouse cursor
Cursor
.
visible
=
true
;
Cursor
.
lockState
=
CursorLockMode
.
None
;
}
// Start is called before the first frame update
...
...
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