void Update() { if (Time.time >= timeToReset && timerIsSet) { ResetVol(); timerIsSet = false; } if (Scene_MainMenu && !isPlaying) { BGMManager.StopMusic("InGameBGM"); BGMManager.PlayMusic("MainMenuBGM"); isPlaying = true; } else if (Scene_InGame && !isPlaying) { BGMManager.PlayMusic("InGameBGM"); BGMManager.StopMusic("MainMenuBGM"); isPlaying = true; } }