From 072f02678d2c5d0d79f49e923b111c4a28da3f69 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 27 Apr 2022 15:01:05 +0800 Subject: *fix bug --- SurvivalTest/Assets/Scripts/Managers/PlayerManager_Weapons.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'SurvivalTest/Assets/Scripts/Managers/PlayerManager_Weapons.cs') 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 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 } else { + autoFire = false; TinyCountDown.Instance.Set("ReleaseFire", autoFireDuration); isFire = false; RunFireCoroutine(false); -- cgit v1.1-26-g67d0