mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
16 lines
361 B
C#
16 lines
361 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class ReloadSceneOnKeyDown : MonoBehaviour {
|
|
|
|
public KeyCode reloadKey = KeyCode.R;
|
|
|
|
void Update () {
|
|
if (Input.GetKeyDown(reloadKey))
|
|
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex, LoadSceneMode.Single);
|
|
}
|
|
}
|