Hi,
I hate the idea of having a sequence of attacks, limited by a cooldown, but clicking by myself will activate a gatlingGun.
And I dont like endless loops .
At the same time, I like the idea of having 2 Buttons that allow me to shoot.
So I found a way to solve both problems:
Like this you only start the Coroutine if there is no 2nd Coroutine already in process, and the coroutine kills itself after shooting.
So you can now switch the Button while shooting, and have still the cooldown on clicking.