void Reset() { minSize = 0; maxSize = 10; lerpTime = 1; lerpType = MathR.LerpType.LINEAR; }
public static IEnumerable FadeOut(this MediaPlayerCtrl self, float time, MathR.LerpType type) { return(self.Fade(false, time, type)); }
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 Fade(this MediaPlayerCtrl self, float start, float end, float time, MathR.LerpType type) { foreach (var value in MathR.LerpE(start, end, time, type)) { self.ForEachRenderer(r => r.SetAlpha(value)); yield return(null); } }