Esempio n. 1
0
        public static MoveToTween RunZ(GameObject item, float z, float duration)
        {
            MoveToTween tween = Create <MoveToTween>(item, duration);

            tween._targetZ = z;
            return(tween);
        }
Esempio n. 2
0
        public static MoveToTween Run(GameObject item, Vector3 position, float duration)
        {
            MoveToTween tween = Create <MoveToTween>(item, duration);

            tween._targetPosition = position;
            return(tween);
        }
Esempio n. 3
0
        public static MoveToTween Run(RectTransform rectTransform, Vector3 anchoredPosition, float duration)
        {
            MoveToTween tween = Create <MoveToTween>(rectTransform.gameObject, duration);

            tween._isAnchoredPosition = true;
            tween._targetPosition     = anchoredPosition;
            tween._rectTransform      = rectTransform;
            return(tween);
        }