This doesn’t seem to be working and I’m not sure why. I get should be waiting in the console but the agent doesn’t stop at all. Any help is appreciated, thanks
After IEnumerator yields, it executes statement after the yield statement.
The OnTriggerEnter function keeps executing the lines of the method irrespective of what is happening in the Coroutine.
Think of coroutine as if it is working in parallel to the main code. Whatsoever happens in the code, remain unaffected by what is happening in the coroutine.