public void PlayLoop(SoundLoop sound, AudioSource source, float volumeFactor = 1) { SoundLoopClip c = audioFiles.SoundLoopToClip(sound); source.clip = c.Clip; source.volume = c.Volume * volumeFactor * globalVolume; source.Play(); }
public void SetLoopVolume(SoundLoop sound, AudioSource source, float volume) { SoundLoopClip c = audioFiles.SoundLoopToClip(sound); source.volume = c.Volume * volume * globalVolume; }