// Start is called before the first frame update void Start() { switch (bgm) { case Bgm.Pause: BackSoundManager.Pause(); break; case Bgm.UnPause: BackSoundManager.UnPause(); break; } }
void Awake() { if (instance != null && instance != this) { Destroy(this.gameObject); return; } else { DontDestroyOnLoad(gameObject); instance = this; } }