I want a dash mechanic in my game where at first the player can dash once followed by a cooldown, then upgrade and dash twice with a cooldown, then three times, etc, but I can only get it to work one of two ways; either an infinite dash or a single dash.
How do I set it so the player can dash three times in a row, followed by a cooldown?
Any advice?
Thanks