unity-atoms/Examples/Assets/InfiniteWaves/UI/TryAgainButton/RestartCurrentScene.cs
2020-03-19 22:42:34 +01:00

11 lines
245 B
C#

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