public override void TriggerHeld() { if (!Fired) { fireRayCastWeapon.Fire(); CurrentMagazineRemainder--; Debug.Log("Bullets left: " + CurrentMagazineRemainder); //Replace with UI feedback Fired = true; } }
public override void TriggerHeld() { if (coolDownTimeLeft <= 0) { coolDownTimeLeft = FireRate; fireRayCastWeapon.Fire(); CurrentMagazineRemainder--; Debug.Log("Bullets left: " + CurrentMagazineRemainder); //Replace with UI feedback } else { CoolDown(); } }