Skip to content

Commit

Permalink
game can be reset with R
Browse files Browse the repository at this point in the history
  • Loading branch information
georgt99 committed Dec 1, 2018
1 parent e63467a commit b43adf5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Assets/Scripts/TriggerGameOver.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

using UnityEngine.UI;

Expand All @@ -16,4 +17,13 @@ void Start () {
public void TriggerGO () {
BadNews.enabled = true;
}


private void Update()
{
if (Input.GetKeyDown(KeyCode.R))
{
SceneManager.LoadScene(0);
}
}
}

0 comments on commit b43adf5

Please sign in to comment.