I added a check for the player tag in the OnTriggerEnter2D()
private void OnTriggerEnter2D(Collider2D collision) { if (collision.CompareTag("Player")) { StartCoroutine("LoadNextLevel"); } }
I assume Rick used a coroutine just to demonstrate the use of coroutines rather than the more straightforward Invoke delay method? Are there any advantages in using coroutines rather than invoke in this context?