From bee8995390fbfb0c4f52caa81756f7b2d8d0e3f9 Mon Sep 17 00:00:00 2001 From: Ignasius Ferry <13520126@std.stei.itb.ac.id> Date: Sun, 16 Apr 2023 14:34:20 +0700 Subject: [PATCH] fix: continuous fire bug --- Assets/WeaponController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/WeaponController.cs b/Assets/WeaponController.cs index 1c0f981..0c0cac1 100644 --- a/Assets/WeaponController.cs +++ b/Assets/WeaponController.cs @@ -79,8 +79,8 @@ public class WeaponController : MonoBehaviour { SelectWeapon(); canChangeWeapon = false; + weaponChanged = false; StartCoroutine(StartCooldown(changeWeaponCooldown, () => { canChangeWeapon = true; })); - Debug.Log("yo"); } } -- GitLab