summaryrefslogtreecommitdiff
path: root/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Weapons.cs
diff options
context:
space:
mode:
Diffstat (limited to 'SurvivalTest/Assets/Scripts/Managers/PlayerManager_Weapons.cs')
-rw-r--r--SurvivalTest/Assets/Scripts/Managers/PlayerManager_Weapons.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Weapons.cs b/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Weapons.cs
index d6d522a..e337c1f 100644
--- a/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Weapons.cs
+++ b/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Weapons.cs
@@ -73,8 +73,7 @@ public partial class PlayerManager : Singleton<PlayerManager>
isFire = true;
RunFireCoroutine(true);
}
-
- if (!autoFire && !Input.GetButton("Fire1") && (axis == 0 && m_LastAxisValue != 0))
+ else if(!autoFire && !Input.GetButton("Fire1") && (axis == 0 && m_LastAxisValue != 0))
{
if (TinyCountDown.Instance.Get("ReleaseFire") > 0)
{
@@ -84,6 +83,7 @@ public partial class PlayerManager : Singleton<PlayerManager>
}
else
{
+ autoFire = false;
TinyCountDown.Instance.Set("ReleaseFire", autoFireDuration);
isFire = false;
RunFireCoroutine(false);