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
c7e03029
Commit
c7e03029
authored
Aug 05, 2019
by
18신대성
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
이동중 다시 클릭시 5배 속도로 움직임
parent
fb410171
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
jackson.prefab
Assets/Prefabs/MapObjects/jackson.prefab
+1
-1
Player.cs
Assets/Scripts/Player.cs
+2
-0
PlayerController.cs
Assets/Scripts/PlayerController.cs
+5
-0
No files found.
Assets/Prefabs/MapObjects/jackson.prefab
View file @
c7e03029
...
...
@@ -1380,7 +1380,7 @@ NavMeshAgent:
m_AgentTypeID
:
0
m_Radius
:
0.3
m_Speed
:
1.5
m_Acceleration
:
8
m_Acceleration
:
1000
avoidancePriority
:
50
m_AngularSpeed
:
1000
m_StoppingDistance
:
0
...
...
Assets/Scripts/Player.cs
View file @
c7e03029
...
...
@@ -86,6 +86,8 @@ public class Player : MonoBehaviour
currentFloor
.
isPlayerOn
=
true
;
PlayerController
.
inst
.
CheckCurrentFloors
();
anim
.
SetBool
(
"isWalking"
,
false
);
anim
.
speed
=
1
;
GetComponent
<
NavMeshAgent
>().
speed
=
1.5f
;
GameManager
.
inst
.
isPlayerMoving
=
false
;
}
/// <summary>
...
...
Assets/Scripts/PlayerController.cs
View file @
c7e03029
...
...
@@ -180,6 +180,11 @@ public class PlayerController : SingletonBehaviour<PlayerController>
currentPlayer
.
Shoot
(
bulletList
[
0
]);
}
}
else
if
(
GameManager
.
inst
.
isPlayerMoving
)
{
currentPlayer
.
GetComponent
<
NavMeshAgent
>().
speed
*=
5
;
currentPlayer
.
anim
.
speed
*=
5
;
}
}
else
if
(
Input
.
GetMouseButtonDown
(
1
)
&&
GameManager
.
inst
.
isPlayerShooting
)
{
...
...
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