mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 09:08:23 -05:00
11 lines
245 B
C#
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);
|
|
}
|
|
}
|