Ejemplo n.º 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];
        }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 3
0
 public FloatTweenSimulator(IList <IValueProvider <float> > providers, float endValue, float duration, ISimulateFunction function, TweenEndValueType tweenEndValueType)
     : base(providers, endValue, duration, function, tweenEndValueType)
 {
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 7
0
 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)
 {
 }
Ejemplo n.º 8
0
 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)
 {
 }
Ejemplo n.º 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());
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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());
 }
Ejemplo n.º 28
0
 public Vector2TweenSimulator(IList <IValueProvider <Vector2> > providers, Vector2 endValue, float duration, ISimulateFunction function, TweenEndValueType tweenEndValueType)
     : base(providers, endValue, duration, function, tweenEndValueType)
 {
 }
Ejemplo n.º 29
0
 public FloatTweenSimulator(object obj, float endValue, float duration, ISimulateFunction function, TweenType tweenType, TweenEndValueType tweenEndValueType)
     : this(GetProviders(obj, tweenType), endValue, duration, function, tweenEndValueType)
 {
 }
Ejemplo n.º 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());
 }