When you post code on the forum, make sure to use Code Tags .
When an object is inactive, it won’t run Update loops anymore. Since coroutines are checked after Update, it won’t run your coroutine anymore.
When you post code on the forum, make sure to use Code Tags .
When an object is inactive, it won’t run Update loops anymore. Since coroutines are checked after Update, it won’t run your coroutine anymore.