11 lines
245 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-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
}