Ejemplo n.º 1
0
        internal static void PlayLooped([NotNull] this SfxManager sfx, [CanBeNull] string fileName, [NotNull, ItemNotNull] IEnumerable <IAudioFormat> formats, [NotNull] object state)
        {
            if (fileName == null)
            {
                return;
            }

            var format = GetFormatForFile(formats, fileName);

            if (format != null)
            {
                sfx.PlayLooped(fileName, format, state);
            }
        }