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(); }
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(); }
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(); }
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(); }