public static LTDescr UIFill(UIMenu menu, string name, float from, float to, float time, float delay = 0.0f, Action onCompleteAction = null, Ease ease = Ease.None) { Image img = menu.Get(name).GetComponent <Image>(); img.fillAmount = from; System.Action <float> action = (val) => { img.fillAmount = val; }; var tween = LeanTween.value(img.gameObject, action, from, to, time); tween = SetLastParameters(tween, delay, onCompleteAction, ease); return(tween); }
public static void UIImageTextAlpha(UIMenu menu, string name, float from, float to, float time, float delay = 0.0f, Action onCompleteAction = null, Ease ease = Ease.None, bool show = true) { UIImageAlpha(menu.Get(name), from, to, time, delay, onCompleteAction, ease, show); UITextAlpha(menu.Get(name).GetComponentInChildren <TMPro.TextMeshProUGUI>().gameObject, from, to, time, delay, null, ease, show); }
public static LTDescr UIRotateZ(UIMenu menu, string name, float from, float to, float time, float delay = 0.0f, Action onCompleteAction = null, Ease ease = Ease.None) { return(UIRotateZ(menu.Get(name), from, to, time, delay, onCompleteAction, ease)); }
public static LTDescr UIImageAlpha(UIMenu menu, string name, float from, float to, float time, float delay = 0.0f, Action onCompleteAction = null, Ease ease = Ease.None, bool show = true) { return(UIImageAlpha(menu.Get(name), from, to, time, delay, onCompleteAction, ease, show)); }