11 lines
274 B
C#
11 lines
274 B
C#
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class ReloadSceneButton : MonoBehaviour
|
|
{
|
|
public void ReloadCurrentScene()
|
|
{
|
|
string currentSceneName = SceneManager.GetActiveScene().name;
|
|
SceneManager.LoadScene(currentSceneName);
|
|
}
|
|
} |