void OnDisable() { if (Application.isPlaying) { string music = MusicLoopEvent; // stop music if (!string.IsNullOrEmpty(music)) { FusionAudio.PostGlobalMusicEvent(music, false); } string ambient = AmbientLoopEvent; // stop ambient if (!string.IsNullOrEmpty(ambient)) { FusionAudio.PostAmbientSoundEvent(ambient, false); } } }