using UnityEngine; using UnityEngine.SceneManagement; public class ExitGame : MonoBehaviour { [SerializeField] private string sceneToLoad = "LightGlueScene"; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } // Load the configured scene (can be set from the Inspector) public void onExitGame() { SceneManager.LoadScene(sceneToLoad); } }