using UnityEngine; using UnityEngine.SceneManagement; namespace UnityAtoms.Examples { /// /// Restart the current scene. /// public class RestartCurrentScene : MonoBehaviour { public void Do() => SceneManager.LoadScene(SceneManager.GetActiveScene().name); } }