public static TweenWidth Begin(UIWidget widget, float duration, int width) { TweenWidth tweenWidth = UITweener.Begin <TweenWidth>(widget.get_gameObject(), duration); tweenWidth.from = widget.width; tweenWidth.to = width; if (duration <= 0f) { tweenWidth.Sample(1f, true); tweenWidth.set_enabled(false); } return(tweenWidth); }
public static TweenWidth Begin(UIWidget widget, float duration, int width) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown TweenWidth tweenWidth = UITweener.Begin <TweenWidth>(widget.get_gameObject(), duration, true); tweenWidth.from = widget.width; tweenWidth.to = width; if (duration <= 0f) { tweenWidth.Sample(1f, true); tweenWidth.set_enabled(false); } return(tweenWidth); }