C# Class AudioSourceExtensions, LearningUnits

Mostrar archivo Open project: prime31/LearningUnits Class Usage Examples

Public Methods

Method Description
fadeOut ( this audioSource, AudioClip audioClip, float duration, Action onComplete ) : IEnumerator
playClip ( this audioSource, AudioClip audioClip, Action onComplete ) : IEnumerator
playClip ( this audioSource, AudioClip audioClip ) : void
playRandomClip ( this audioSource, AudioClip clips ) : void

Method Details

fadeOut() public static method

public static fadeOut ( this audioSource, AudioClip audioClip, float duration, Action onComplete ) : IEnumerator
audioSource this
audioClip UnityEngine.AudioClip
duration float
onComplete Action
return IEnumerator

playClip() public static method

public static playClip ( this audioSource, AudioClip audioClip, Action onComplete ) : IEnumerator
audioSource this
audioClip UnityEngine.AudioClip
onComplete Action
return IEnumerator

playClip() public static method

public static playClip ( this audioSource, AudioClip audioClip ) : void
audioSource this
audioClip UnityEngine.AudioClip
return void

playRandomClip() public static method

public static playRandomClip ( this audioSource, AudioClip clips ) : void
audioSource this
clips UnityEngine.AudioClip
return void