using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class SceneLoader : MonoBehaviour { public void LoadScene(int index) { SceneManager.LoadScene(index); } public void LoadScene(string name) { SceneManager.LoadScene(name); } public void UnloadScene(int index) { SceneManager.UnloadSceneAsync(index); } public void UnloadScene(string name) { SceneManager.UnloadSceneAsync(name); } }