unity-atoms/Examples/Assets/InfinityWaves/UI/RestartCurrentScene.cs

8 lines
195 B
C#
Raw Normal View History

2020-03-11 21:11:27 +01:00
using UnityEngine;
using UnityEngine.SceneManagement;
public class RestartCurrentScene : MonoBehaviour
{
2020-03-15 23:18:29 +01:00
public void Do() => SceneManager.LoadScene(SceneManager.GetActiveScene().name);
2020-03-11 21:11:27 +01:00
}