How to make my game reset after the player collide with obstacles ?

Hi.
I wanted to know how to make my game reset after my player collide with obstacles ?

There are multiple ways to go about this.

The simplest would be to reload the scene when the player collides with an obstacle. As long as you tag each of your obstacles the same as the tag in this script, it should be fine.
using UnityEngine.SceneManagement;
//Add this using line to you script

public class Player : Monobehaviour {
     //If using 3D
     void OnCollisionEnter(Collision Col) {
          if (Col.collider.gameObject.tag == "InsertTagNameHere")
               SceneManager.LoadScene(SceneManager.GetActiveScene());
     }

     //If using 2D
     void OnCollisionEnter2D(Collision2D Col) {
          if (Col.collider.gameObject.tag == "InsertTagNameHere")
               SceneManager.LoadScene(SceneManager.GetActiveScene());
     }
}

However, this will set everything back to the way it was when it started and cause a noticeable freeze and cut. There are ways around this, however I recommend taking it one step at a time.