public static uTweenPosition Begin(GameObject go, Vector3 from, Vector3 to, float duration = 1f, float delay = 0f) { uTweenPosition comp = uTweener.Begin <uTweenPosition>(go, duration); comp.from = from; comp.to = to; comp.duration = duration; comp.delay = delay; if (duration <= 0) { comp.Sample(1, true); comp.enabled = false; } return(comp); }
// Token: 0x06002ABB RID: 10939 RVA: 0x0046FBA4 File Offset: 0x0046DDA4 public static uTweenPosition Begin(GameObject go, Vector3 from, Vector3 to, float duration = 1f, float delay = 0f) { uTweenPosition uTweenPosition = uTweener.Begin <uTweenPosition>(go, duration); uTweenPosition.from = from; uTweenPosition.to = to; uTweenPosition.duration = duration; uTweenPosition.delay = delay; if (duration <= 0f) { uTweenPosition.Sample(1f, true); uTweenPosition.enabled = false; } return(uTweenPosition); }