public void SetTabAnima(int index) { GameObject go = m_tabList[index]; TweenPosition tw = TweenPosition.Get(pos.gameObject); tw.from = pos.transform.localPosition; tw.to = go.transform.localPosition; tw.duration = 0.2f; tw.Play(true); tw.Reset(); }
public void SetLine(Vector3 end, float time, UITweener.Method show, Action endEvent) { if (m_object != null) { TweenPosition cur = TweenPosition.Get(m_object); cur.duration = time * 0.001f; cur.from = GetPos(); cur.to = end; cur.method = show; cur.Reset(); cur.Play(true); cur.onFinished = (go) => { if (endEvent != null) { endEvent(); } }; } }