Skip to content
Snippets Groups Projects
Commit bee89953 authored by Ignasius Ferry's avatar Ignasius Ferry
Browse files

fix: continuous fire bug

parent b345aad2
No related merge requests found
...@@ -79,8 +79,8 @@ public class WeaponController : MonoBehaviour ...@@ -79,8 +79,8 @@ public class WeaponController : MonoBehaviour
{ {
SelectWeapon(); SelectWeapon();
canChangeWeapon = false; canChangeWeapon = false;
weaponChanged = false;
StartCoroutine(StartCooldown(changeWeaponCooldown, () => { canChangeWeapon = true; })); StartCoroutine(StartCooldown(changeWeaponCooldown, () => { canChangeWeapon = true; }));
Debug.Log("yo");
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment