I would recommend you to go through the SceneManager class in Unity Docs.
However, you can use this line to reload the current scene thus, restarting it:
SceneManager.LoadScene(SceneManager.GetActiveScene());
Hope that answers your questions.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…