My 120-day journey to being a better Unity Developer — Day 9

Creating A Cooldown System in Unity

Implementing a cooldown system (right)
Fire rate
This variable provides the delay between shots
Adjusting fire rate
Added Range attribute
Change to a slider control, how cool!
Firing Cooldown System

Final Code:

PlayerShoot script

--

--

A Data & Analytics Consultant who is expanding into developing experiences in XR, Enterprise and Gaming space using Unity www.jeannoelseneque.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jean-Noel Seneque

A Data & Analytics Consultant who is expanding into developing experiences in XR, Enterprise and Gaming space using Unity www.jeannoelseneque.com