public SlideOutEffect(Widget widget, float time, FourWayDirection direction, SlideOutEffectInterpolator interpolator) { base.Widget = widget; this.Time = time; this.Interpolator = interpolator; this.CustomInterpolator = null; this.MoveDirection = direction; }
public static SlideOutEffect CreateAndStart(Widget widget, float time, FourWayDirection direction, SlideOutEffectInterpolator interpolator) { SlideOutEffect slideOutEffect = new SlideOutEffect(widget, time, direction, interpolator); slideOutEffect.Start(); return(slideOutEffect); }