using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class SceneChanger : MonoBehaviour { public void ChangeScene() { StartCoroutine("ChangeNow"); } private IEnumerator ChangeNow() { yield return new WaitForSeconds(1); SceneManager.LoadScene("MazeGeneration"); } }