Creating a Cooldown System in Unity

It wouldn't be fair or realistic if you could just fire your laser as fast as you can hit the space. we want to slow down the rate the laser can be fire. In unity, there is more than one way to accomplish this. I will show you a very simple way this can be accomplished

No Cooldown system on the left, a Cooldown system on the right
Time. time
Cooldown Variables

Unity / C# Game developer