/// <summary> /// 滑动 /// </summary> /// <param name="control"></param> /// <param name="vIn"></param> /// <param name="stType"></param> /// <param name="fTime"></param> /// <param name="ltType"></param> /// <returns></returns> public static CUIControl Slide(CUIControl control, Vector3 vFrom, Vector3 vTo, float fAlphaForm = 0, float fAlphaTo = 1, float fTime = 0.25f, LeanTweenType ltType = LeanTweenType.easeOutCirc) { control.show = true; CUI.MoveTo(control, vFrom, vTo, fTime, ltType); CUI.Fade(control, fAlphaForm, fAlphaTo, fTime); return(control); }
public virtual CUIControl Fade(float fFrom, float fTo, float fTime = 0.5f) { CUI.Fade(this, fFrom, fTo, fTime); return(this); }