14 lines
317 B
C#
Raw Normal View History

2020-03-11 21:11:27 +01:00
using UnityEngine;
using UnityEngine.SceneManagement;
2020-03-18 02:04:33 +01:00
namespace UnityAtoms.Examples
2020-03-11 21:11:27 +01:00
{
2020-03-20 01:29:39 +01:00
/// <summary>
/// Restart the current scene.
/// </summary>
2020-03-18 02:04:33 +01:00
public class RestartCurrentScene : MonoBehaviour
{
public void Do() => SceneManager.LoadScene(SceneManager.GetActiveScene().name);
}
2020-03-11 21:11:27 +01:00
}