Renamed game scene and added a button to send the player to the (currently barren) main menu

This commit is contained in:
Gregory Campbell
2020-07-11 19:09:31 -04:00
parent 1deb85510d
commit e9abec92df
5 changed files with 218 additions and 1 deletions
+5 -1
View File
@@ -46,7 +46,11 @@ public class GMScript : MonoBehaviour
{
if (Input.GetKeyDown("r")) {
SceneManager.LoadScene("Scene");
SceneManager.LoadScene("Game");
}
if (Input.GetKeyDown(KeyCode.Escape)) {
SceneManager.LoadScene("Main Menu");
}
if(GameObject.FindWithTag("Player") != null)