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

11 lines
212 B
C#
Raw Normal View History

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