diff options
author | chai <chaifix@163.com> | 2022-04-27 15:01:05 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-04-27 15:01:05 +0800 |
commit | 072f02678d2c5d0d79f49e923b111c4a28da3f69 (patch) | |
tree | 8c931ed5248d4b00bcfc567678224f3661ad22a4 /SurvivalTest/Assets/Scripts/Managers/PlayerManager_Weapons.cs | |
parent | e7e9050e7b288586abc173d2311e77cd9f9cebf9 (diff) |
*fix bug
Diffstat (limited to 'SurvivalTest/Assets/Scripts/Managers/PlayerManager_Weapons.cs')
-rw-r--r-- | SurvivalTest/Assets/Scripts/Managers/PlayerManager_Weapons.cs | 4 |
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); |