I don't get coroutines.

If you don’t understand coroutines then why not start experimenting with a basic and super simple one in a new project. Trying to understand something in a more complex environment of a larger project with all the things that could go wrong there isn’t the best way.

There’s lots of online videos about coroutines but there’s also one on the Unity Learn site here that might help a little.

Also, it’s easier on the eyes if you post code using code-tags .