Check out example codes for "unity reset scene". It will help you in understanding the concepts better.
Code Example 1
//for unity c#
using UnityEngine.SceneManagement;
...
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
Learn ReactJs, React Native from akashmittal.com