public void FadeIn()
    {
        foreach (AudioSource aSource in audioSources)
        {
            aSource.volume = 0;
            StartCoroutine(AudioUtility.FadeAudioSource(aSource, cue.fadeInTime, cue.Volume));
        }

        print("FADE IN: " + audioSources[toggle].clip + " on: " + gameObject.name);
    }
Пример #2
0
 public void FadeOut()
 {
     StartCoroutine(AudioUtility.FadeAudioSource(audioSource, cue.fadeOutTime, 0));
 }
Пример #3
0
 public void FadeIn()
 {
     audioSource.volume = 0;
     StartCoroutine(AudioUtility.FadeAudioSource(audioSource, cue.fadeInTime, cue.Volume));
 }