public static IEnumerable Fade(this MediaPlayerCtrl self, bool fadeIn, float time, MathR.LerpType type) { float start = (fadeIn) ? 0 : 1; float end = (fadeIn) ? 1 : 0; return(self.Fade(start, end, time, type)); }
public static IEnumerable FadeOut(this MediaPlayerCtrl self, float time, MathR.LerpType type) { return(self.Fade(false, time, type)); }