Exemplo n.º 1
0
 public void FadeIn(float duration, ExtendedAudioSource source = null)
 {
     if (source == null)
     {
         source = AudioPool.GetAudioSource();
     }
     source.Setup(this);
     source.FadeIn(duration);
 }
Exemplo n.º 2
0
 public void PlayOnce(ExtendedAudioSource source = null)
 {
     if (source == null)
     {
         source = AudioPool.GetAudioSource();
     }
     source.Setup(this);
     source.PlayOnce();
 }
Exemplo n.º 3
0
 public void PlayDelayed(float delay, ExtendedAudioSource source = null)
 {
     if (source == null)
     {
         source = AudioPool.GetAudioSource();
     }
     source.Setup(this);
     source.PlayDelayed(delay);
 }
Exemplo n.º 4
0
        public void Play(ExtendedAudioSource source = null)
        {
            //Get audiosource
            if (source == null)
            {
                source = AudioPool.GetAudioSource();
            }

            source.Setup(this);
            source.Play();
        }