mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-23 16:48:23 -05:00
14 lines
317 B
C#
14 lines
317 B
C#
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
namespace UnityAtoms.Examples
|
|
{
|
|
/// <summary>
|
|
/// Restart the current scene.
|
|
/// </summary>
|
|
public class RestartCurrentScene : MonoBehaviour
|
|
{
|
|
public void Do() => SceneManager.LoadScene(SceneManager.GetActiveScene().name);
|
|
}
|
|
}
|