public static FadeOutEffect CreateAndStart(Widget widget, float time, FadeOutEffectInterpolator interpolator) { FadeOutEffect fadeOutEffect = new FadeOutEffect(widget, time, interpolator); fadeOutEffect.Start(); return(fadeOutEffect); }
public FadeOutEffect(Widget widget, float time, FadeOutEffectInterpolator interpolator) { base.Widget = widget; this.Time = time; this.Interpolator = FadeOutEffectInterpolator.EaseOutQuad; this.CustomInterpolator = null; }