Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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));
 }
Ejemplo n.º 4
0
 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));
 }