private static void PlayAudioIntroAndLoopClip( FadingAudioSource audioSource, AudioClip introClip, AudioClip loopClip, float volume) { audioSource.Fade(introClip, loopClip, volume); }
/// <summary> /// Makes the passed audio source play the specified music clip with /// with the passed parameters. /// </summary> /// <param name="audioSource">Audio source for playing the clip.</param> /// <param name="clip">Audio clip to play.</param> /// <param name="volume">Volume to play the clip with.</param> /// <param name="loop">Whether to loop the clip, or not.</param> private static void PlayAudioClip(FadingAudioSource audioSource, AudioClip clip, float volume, bool loop) { audioSource.Fade(clip, volume, loop); }