using UnityEngine.SceneManagement public class LoadScene : MonoBehavior { public string sceneToLoad = "Level2"; public void Start() { SceneManager.LoadScene(sceneToLoad); } }