Coroutine not working

Hi Abhinav,

I think the problem is caused by Destroy(gameObject);. Coroutines on destroyed game objects get destroyed along with the game object. Instead of destroying the game object, disable the collider and disable the Renderer but not the game object.

Did this help?


See also:

1 Like