Trying to reset lvl on collsion

Trying to make a 2d game a reset the level on collision with a boxcollider2d here’s what i got ;

void OnCollisionEnter2D(BoxCollider2D col)
        if (col.gameObject.tag == "Player")
            Scene level = SceneManager.GetActiveScene();

Hmm. you

  1. could try fade to black. Or picture to pop up filling the screen.
  2. LoadSceneAsync(loadingScene) (can also be just blank)
  3. SetActiveScene(loadingScene)
  4. UnloadSceneAsync(level)
  5. LoadSceneAsync(level)
  6. SetActiveScene(level)
  7. Fade back to normal or fade out the picture

If you want to reset the level . You could do this in a simple way


This is the proper way of restarting your level.