Just that, I guess; I’d like to know if I have any running coroutines before I stop/start them…
~ethan
Just that, I guess; I’d like to know if I have any running coroutines before I stop/start them…
~ethan
No; it doesn’t. Apparently there’s no way to know what coroutines are running.
I’ve kept script wide boolean globals for coroutines in the past to keep track of which coroutines are invoking when needed. Also if I just want to make sure only one instance of the coroutine is running, I put a StopCoroutine() before StartCoroutine always. Stopping a non-running coroutine doesn’t produce an error, just silently doesn’t do anything.
Hope that helps,
-Jon