How do I reset a countdown timer every time I exit out of a collider which sets off the countdown?

Steps to success:

  • learn how to use the OnCollisionEnter / OnCollisionExit suite of functions (or implement your own collision test if you prefer, such a with a distance test)

  • set or reset the timer however you like.

Here’s how to do timers:

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

GunHeat (gunheat) spawning shooting rate of fire: