GameDev Dustin

The above script makes use of the new Input System.
Make sure the Input System package has been imported into the project.

By tracking when the player last fired the weapon, the current time, and checking the difference, we can make a very simple cooldown system as shown above.

--

--