unity-atoms/Examples/Assets/InfinityWaves/UI/RestartCurrentScene.cs
2020-03-15 23:18:29 +01:00

8 lines
195 B
C#

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