Ejemplo n.º 1
0
        public static LTDescr UIScale(UIMenu menu, string name, Vector2 from, Vector2 to, float time, float delay = 0.0f, Action onCompleteAction = null, Ease ease = Ease.None)
        {
            menu.SetRectScale(name, from, true);
            var tween = LeanTween.scale(menu.GetRect(name), to, time);

            tween = SetLastParameters(tween, delay, onCompleteAction, ease);
            return(tween);
        }
Ejemplo n.º 2
0
        public static LTDescr UIMoveY(UIMenu menu, string name, float from, float to, float time, float delay = 0.0f, Action onCompleteAction = null, Ease ease = Ease.None)
        {
            menu.SetAnchoredPositionY(name, from, true);
            var tween = LeanTween.moveY(menu.GetRect(name), to, time);

            tween = SetLastParameters(tween, delay, onCompleteAction, ease);
            return(tween);
        }