Exemple #1
0
        protected TweenSimulator(IList <IValueProvider <TValue> > providers, TValue endValue, float duration, ISimulateFunction function, TweenEndValueType tweenEndValueType)
        {
            this.providers         = new ReadOnlyCollection <IValueProvider <TValue> >(providers);
            this.endValue          = endValue;
            this.duration          = duration;
            this.function          = function;
            this.tweenEndValueType = tweenEndValueType;

            this.shifts       = new TValue[this.providers.Count];
            this.previosValue = new TValue[this.providers.Count];
        }
Exemple #2
0
 public FloatTween(object obj, float endValue, TweenType tweenType = TweenType.Undefined, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : this(obj, endValue, 0, new EaseSimulateFunction(TweenPerformer.Ease[EaseType.EndValue]), tweenType, endValueType, callback)
 {
 }
Exemple #3
0
 public FloatTweenSimulator(IList <IValueProvider <float> > providers, float endValue, float duration, ISimulateFunction function, TweenEndValueType tweenEndValueType)
     : base(providers, endValue, duration, function, tweenEndValueType)
 {
 }
Exemple #4
0
 public static AlphaTween Play(object obj, float endValue, float duration, EaseType easeType, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
 {
     return(Play(obj, endValue, duration, new EaseSimulateFunction(TweenPerformer.Ease[easeType]), endValueType, callback));
 }
Exemple #5
0
 public AlphaTween(object obj, float endValue, float duration, ISimulateFunction function, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : base(obj, endValue, duration, function, TweenType.Alpha, endValueType, callback)
 {
 }
Exemple #6
0
 public AlphaTween(object obj, float endValue, float duration, AnimationCurve curve, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : this(obj, endValue, duration, new AnimationCurveSimulateFunction(curve), endValueType, callback)
 {
 }
 public SpriteFillTween(object obj, float endValue, float duration, ISimulateFunction function, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : base(obj, endValue, duration, function, TweenType.FillAmount, endValueType, callback)
 {
 }
 public SpriteFillTween(object obj, float endValue, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : this(obj, endValue, 0, new EaseSimulateFunction(TweenPerformer.Ease[EaseType.EndValue]), endValueType, callback)
 {
 }
Exemple #9
0
 public static MoveTween Play(object obj, Vector3 endValue, float duration, ISimulateFunction function, TweenSpace space = TweenSpace.Global, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
 {
     return((MoveTween)(new MoveTween(obj, endValue, duration, function, space, endValueType, callback)).PlayAndReturnSelf());
 }
Exemple #10
0
 public static MoveTween Play(object obj, Vector3 endValue, float duration, EaseType easeType, TweenSpace space = TweenSpace.Global, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
 {
     return(Play(obj, endValue, duration, new EaseSimulateFunction(TweenPerformer.Ease[easeType]), space, endValueType, callback));
 }
Exemple #11
0
 public static MoveTween Play(object obj, Vector3 endValue, float duration, AnimationCurve curve, TweenSpace space = TweenSpace.Global, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
 {
     return(Play(obj, endValue, duration, new AnimationCurveSimulateFunction(curve), space, endValueType, callback));
 }
Exemple #12
0
 public MoveTween(object obj, Vector3 endValue, float duration, ISimulateFunction function, TweenSpace space = TweenSpace.Global, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : base(obj, endValue, duration, function, TweenPerformer.GetShiftTypeBySpace(space), endValueType, callback)
 {
 }
Exemple #13
0
 public MoveTween(object obj, Vector3 endValue, float duration, EaseFunction ease, TweenSpace space = TweenSpace.Global, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : this(obj, endValue, duration, new EaseSimulateFunction(ease), space, endValueType, callback)
 {
 }
Exemple #14
0
 public MoveTween(object obj, Vector3 endValue, TweenSpace space = TweenSpace.Global, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : this(obj, endValue, 0, new EaseSimulateFunction(TweenPerformer.Ease[EaseType.EndValue]), space, endValueType, callback)
 {
 }
Exemple #15
0
 public Vector3Tween(object obj, Vector3 endValue, float duration, EaseFunction ease, TweenType tweenType = TweenType.Undefined, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : this(obj, endValue, duration, new EaseSimulateFunction(ease), tweenType, endValueType, callback)
 {
 }
Exemple #16
0
 public CameraOrthoSizeTween(object obj, float endValue, float duration, ISimulateFunction function, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : base(obj, endValue, duration, function, TweenType.CameraOrthoSize, endValueType, callback)
 {
 }
Exemple #17
0
 public SizeTween(object obj, Vector2 endValue, float duration, ISimulateFunction function, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : base(obj, endValue, duration, function, TweenType.Size2D, endValueType, callback)
 {
 }
Exemple #18
0
 public ColorTween(object obj, Color endValue, float duration, ISimulateFunction function, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : base(new ColorTweenSimulator(obj, endValue, duration, function, TweenType.Color, endValueType), duration, null, callback)
 {
     this.endValue     = endValue;
     this.endValueType = endValueType;
 }
Exemple #19
0
 public SpriteFillTween(object obj, float endValue, float duration, EaseFunction ease, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : this(obj, endValue, duration, new EaseSimulateFunction(ease), endValueType, callback)
 {
 }
Exemple #20
0
 public static ScaleTween Play(object obj, Vector3 endScale, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
 {
     return(Play(obj, endScale, 0, new EaseSimulateFunction(TweenPerformer.Ease[EaseType.EndValue]), endValueType, callback));
 }
Exemple #21
0
 public static SpriteFillTween Play(object obj, float endValue, float duration, EaseFunction ease, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
 {
     return(Play(obj, endValue, duration, new EaseSimulateFunction(ease), endValueType, callback));
 }
Exemple #22
0
 public Vector2Tween(object obj, Vector2 endValue, float duration, AnimationCurve curve, TweenType tweenType = TweenType.Undefined, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : this(obj, endValue, duration, new AnimationCurveSimulateFunction(curve), tweenType, endValueType, callback)
 {
 }
Exemple #23
0
 public AlphaTween(object obj, float endValue, float duration, EaseType easeType, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : this(obj, endValue, duration, new EaseSimulateFunction(TweenPerformer.Ease[easeType]), endValueType, callback)
 {
 }
Exemple #24
0
 public Vector2Tween(object obj, Vector2 endValue, float duration, EaseType easeType, TweenType tweenType = TweenType.Undefined, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : this(obj, endValue, duration, new EaseSimulateFunction(TweenPerformer.Ease[easeType]), tweenType, endValueType, callback)
 {
 }
Exemple #25
0
 public static AlphaTween Play(object obj, float endValue, float duration, AnimationCurve curve, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
 {
     return(Play(obj, endValue, duration, new AnimationCurveSimulateFunction(curve), endValueType, callback));
 }
Exemple #26
0
 public Vector2Tween(object obj, Vector2 endValue, float duration, ISimulateFunction function, TweenType tweenType = TweenType.Undefined, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
     : base(new Vector2TweenSimulator(obj, endValue, duration, function, tweenType, endValueType), duration, null, callback)
 {
     this.endValue     = endValue;
     this.endValueType = endValueType;
 }
Exemple #27
0
 public static AlphaTween Play(object obj, float endValue, float duration, ISimulateFunction function, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
 {
     return((AlphaTween)(new AlphaTween(obj, endValue, duration, function, endValueType, callback)).PlayAndReturnSelf());
 }
Exemple #28
0
 public Vector2TweenSimulator(IList <IValueProvider <Vector2> > providers, Vector2 endValue, float duration, ISimulateFunction function, TweenEndValueType tweenEndValueType)
     : base(providers, endValue, duration, function, tweenEndValueType)
 {
 }
Exemple #29
0
 public FloatTweenSimulator(object obj, float endValue, float duration, ISimulateFunction function, TweenType tweenType, TweenEndValueType tweenEndValueType)
     : this(GetProviders(obj, tweenType), endValue, duration, function, tweenEndValueType)
 {
 }
Exemple #30
0
 public static MoveRectPositionTween Play(object obj, Vector2 endValue, float duration, ISimulateFunction function, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null)
 {
     return((MoveRectPositionTween)(new MoveRectPositionTween(obj, endValue, duration, function, endValueType, callback)).PlayAndReturnSelf());
 }