Example #1
0
 public static Coroutine EaseVolume(this AudioSource source, float start, float end, float length, EaseType easeType, Action onComplete = null)
 {
     return(RunEase(source.GetEasingMono(), start, end, length, easeType, amount =>
     {
         source.volume = amount;
     }, onComplete));
 }