Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
    public void SetLoopVolume(SoundLoop sound, AudioSource source, float volume)
    {
        SoundLoopClip c = audioFiles.SoundLoopToClip(sound);

        source.volume = c.Volume * volume * globalVolume;
    }