Beispiel #1
0
        public VectorTween(Vector3 from, Vector3 to, float time, Action <Vector3> onTween, bool ignoreTimeScale = false, EasingType easingType = default)
        {
            StartValue         = from;
            TargetValue        = to;
            TweenDuration      = time;
            EasingType         = easingType;
            IsTimeScaleIgnored = ignoreTimeScale;
            OnTween            = onTween;

            easingFunction = EasingType.GetEasingFunction();
        }
Beispiel #2
0
        public ColorTween(Color from, Color to, ColorTweenMode mode, float time, Action <Color> onTween, bool ignoreTimeScale = false, EasingType easingType = default)
        {
            StartColor         = from;
            TargetColor        = to;
            TweenMode          = mode;
            TweenDuration      = time;
            EasingType         = easingType;
            IsTimeScaleIgnored = ignoreTimeScale;
            OnColorTween       = onTween;

            easingFunction = EasingType.GetEasingFunction();
        }
Beispiel #3
0
        public FloatTween(float from, float to, float time, Action <float> onTween,
                          bool ignoreTimeScale = false, EasingType easingType = default, UnityEngine.Object target = default)
        {
            startValue       = from;
            targetValue      = to;
            TweenDuration    = time;
            EasingType       = easingType;
            TimeScaleIgnored = ignoreTimeScale;
            this.onTween     = onTween;

            targetProvided = this.target = target;
            easingFunction = EasingType.GetEasingFunction();
        }
Beispiel #4
0
        public ColorTween(Color from, Color to, ColorTweenMode mode, float time, Action <Color> onTween,
                          bool ignoreTimeScale = false, EasingType easingType = default, UnityEngine.Object target = default)
        {
            startColor       = from;
            targetColor      = to;
            tweenMode        = mode;
            TweenDuration    = time;
            EasingType       = easingType;
            TimeScaleIgnored = ignoreTimeScale;
            this.onTween     = onTween;

            targetProvided = this.target = target;
            easingFunction = EasingType.GetEasingFunction();
        }