Can't instantiate several bullets in a row

I would not recommend using a coroutine for a simple cooldown timer. For one it is over-engineering and for two, if you set a GameObject inactive then coroutines on it may die.

Cooldown timers, gun bullet intervals, shot spacing, rate of fire:

GunHeat (gunheat) spawning shooting rate of fire:

2 Likes