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
b75e4a05
Commit
b75e4a05
authored
5 years ago
by
18신대성
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
여러번 클릭시 계속 빨라지는거 방지
parent
bc9155e0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
Briefcase.cs
Assets/Scripts/Interactors/Briefcase.cs
+1
-1
GameManager.cs
Assets/Scripts/Managers/GameManager.cs
+1
-1
Player.cs
Assets/Scripts/Player.cs
+1
-0
PlayerController.cs
Assets/Scripts/PlayerController.cs
+2
-1
No files found.
Assets/Scripts/Interactors/Briefcase.cs
View file @
b75e4a05
...
...
@@ -57,7 +57,7 @@ public class Briefcase : MonoBehaviour, IObject, IPlayerInteractor
{
if
(!
GameManager
.
inst
.
isGameOver
)
{
Debug
.
Log
(
Position
+
" "
+
position
);
//
Debug.Log(Position + " " + position);
if
(
Position
==
position
)
{
if
(
dropBullet
!=
BulletCode
.
None
)
...
...
This diff is collapsed.
Click to expand it.
Assets/Scripts/Managers/GameManager.cs
View file @
b75e4a05
...
...
@@ -22,7 +22,7 @@ public class GameManager : SingletonBehaviour<GameManager>
[
Header
(
"Stage Data"
)]
public
bool
isGameOver
=
false
;
public
bool
isPlayerMoving
,
isPlayerShooting
,
isZooming
,
isBulletFlying
;
public
bool
isPlayerMoving
,
isPlayerShooting
,
isZooming
,
isBulletFlying
,
isFast
;
public
int
[]
clearIndex
=
new
int
[
9
];
public
int
clearCounter
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Assets/Scripts/Player.cs
View file @
b75e4a05
...
...
@@ -88,6 +88,7 @@ public class Player : MonoBehaviour
anim
.
SetBool
(
"isWalking"
,
false
);
anim
.
speed
=
1
;
GetComponent
<
NavMeshAgent
>().
speed
=
1.5f
;
GameManager
.
inst
.
isFast
=
false
;
GameManager
.
inst
.
isPlayerMoving
=
false
;
}
/// <summary>
...
...
This diff is collapsed.
Click to expand it.
Assets/Scripts/PlayerController.cs
View file @
b75e4a05
...
...
@@ -200,10 +200,11 @@ public class PlayerController : SingletonBehaviour<PlayerController>
currentPlayer
.
Shoot
(
bulletList
[
0
]);
}
}
else
if
(
GameManager
.
inst
.
isPlayerMoving
)
else
if
(
GameManager
.
inst
.
isPlayerMoving
&&
!
GameManager
.
inst
.
isFast
)
{
currentPlayer
.
GetComponent
<
NavMeshAgent
>().
speed
*=
5
;
currentPlayer
.
anim
.
speed
*=
5
;
GameManager
.
inst
.
isFast
=
true
;
}
}
else
if
(
Input
.
GetMouseButtonDown
(
1
)
&&
GameManager
.
inst
.
isPlayerShooting
)
...
...
This diff is collapsed.
Click to expand it.
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