Example #1
0
        public static IntTween TweenValue(int from, int to, float duration = 0.5f)
        {
            TweenValueTarget <int> target = new TweenValueTarget <int>(from);
            IntTween tween = IntTween.Create();

            tween.Initialize(target, to, duration);
            return(tween);
        }
Example #2
0
        public static FloatTween TweenValue(float from, float to, float duration = 0.5f)
        {
            TweenValueTarget <float> target = new TweenValueTarget <float>(from);
            FloatTween tween = FloatTween.Create();

            tween.Initialize(target, to, duration);
            return(tween);
        }