unity-atoms/Examples/Assets/InfiniteWaves/UI/TryAgainButton/RestartCurrentScene.cs

11 lines
245 B
C#
Raw Normal View History

2020-03-11 16:11:27 -04:00
using UnityEngine;
using UnityEngine.SceneManagement;
2020-03-17 21:04:33 -04:00
namespace UnityAtoms.Examples
2020-03-11 16:11:27 -04:00
{
2020-03-17 21:04:33 -04:00
public class RestartCurrentScene : MonoBehaviour
{
public void Do() => SceneManager.LoadScene(SceneManager.GetActiveScene().name);
}
2020-03-11 16:11:27 -04:00
}