using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class gameOver : MonoBehaviour { public void gotoscene(string s1) { SceneManager.LoadScene(s1); } public void myQuit() { Application.Quit(); } void Start() { } // Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.R)) { SceneManager.LoadScene("s1"); } else if (Input.GetKeyDown(KeyCode.Q)) { Application.Quit(); } else if (Input.GetKeyDown(KeyCode.E)) { SceneManager.LoadScene("s2"); } } }