fix: Message delay working properly

This commit is contained in:
Gerard Gascón 2024-01-28 10:30:57 +01:00
parent 2f9b516605
commit 60fd82cff5
30 changed files with 538 additions and 19 deletions

View file

@ -31,8 +31,8 @@ namespace Audio {
};
s.source = sound.AddComponent<AudioSource>();
if (soundList.mainMixer && soundList.sfxMixer) {
s.source.outputAudioMixerGroup = s.type == Sounds.List.Type.Music ? soundList.mainMixer : soundList.sfxMixer;
if (soundList.musicMixer && soundList.sfxMixer) {
s.source.outputAudioMixerGroup = s.type == Sounds.List.Type.Music ? soundList.musicMixer : soundList.sfxMixer;
}
s.source.clip = s.clip;