How can I have a function which will play a coroutine, but first check if it is already running to stop it if it is?
EDIT: Sorry I didnt see that someone had already asked/answered this and it was something I was stuck on for a bit
How can I have a function which will play a coroutine, but first check if it is already running to stop it if it is?
EDIT: Sorry I didnt see that someone had already asked/answered this and it was something I was stuck on for a bit
OR see linked answer: How to stop co-routine?