// Token: 0x060002B0 RID: 688 RVA: 0x00021830 File Offset: 0x0001FA30 public static TweenTransform Begin(GameObject go, float duration, Transform from, Transform to) { TweenTransform tweenTransform = UITweener.Begin <TweenTransform>(go, duration); tweenTransform.from = from; tweenTransform.to = to; if (duration <= 0f) { tweenTransform.Sample(1f, true); tweenTransform.enabled = false; } return(tweenTransform); }
/// <summary> /// Start the tweening operation. /// </summary> static public TweenTransform Begin(GameObject go, float duration, Transform from, Transform to) { TweenTransform comp = UITweener.Begin <TweenTransform>(go, duration); comp.from = from; comp.to = to; if (duration <= 0f) { comp.Sample(1f, true); comp.enabled = false; } return(comp); }