Exemplo n.º 1
0
        public static void FadeOut(Sound sound, float duration = 1f)
        {
            ExtendedAudioSource source = AudioPool.IsPlaying(sound);

            if (source != null)
            {
                source.FadeOut(duration);
            }
        }