I have tried various methods but the if adding a value for the variable burstdelay doesn’t have any effect on slowing down shooting I’m stuck anyone that can help would be appricated.
if(burstTimer < burstDelay)
{
ERayShoot();
audio.PlayOneShot(ShootSound);
_hit.collider.SendMessageUpwards("ApplyDamage", Damage, SendMessageOptions.DontRequireReceiver);
BulletsLeft--;
// play the sound or whatever
burstTimer = burstDelay;
}
else
{
burstTimer -= 0.1f;
}