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

8 lines
195 B
C#
Raw Normal View History

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