SANDBOX_LT / Scripts /ReloadScene.cs
Mufasakong's picture
Upload 18 files
c80142e verified
raw
history blame contribute delete
276 Bytes
using UnityEngine;
using UnityEngine.SceneManagement;
public class ReloadScene : MonoBehaviour
{
void Update()
{
if (Input.GetKeyDown(KeyCode.R))
{
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
}
}
}