diff options
Diffstat (limited to 'RestartOnR.cs')
-rw-r--r-- | RestartOnR.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/RestartOnR.cs b/RestartOnR.cs new file mode 100644 index 0000000..346eff3 --- /dev/null +++ b/RestartOnR.cs @@ -0,0 +1,16 @@ +using UnityEngine; + +public class RestartOnR : MonoBehaviour +{ + private void Start() + { + } + + private void Update() + { + if (Input.GetKeyDown(KeyCode.T)) + { + Application.LoadLevel(Application.loadedLevel); + } + } +} |