using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class SceneChanged : MonoBehaviour { public bool START = true; public string strScene; void Start() { if (START) OnChanged(); } public void OnChanged() { SoundManager.Instance.BGMStop(); SceneManager.LoadScene($"{strScene}"); } }