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]; }
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 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) { }
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) { }
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()); }
private readonly new Vector3 endValue; //TODO: Тут не было new. #region Constructors public QuaternionTweenSimulator(object obj, Vector3 endValue, float duration, ISimulateFunction function, TweenType tweenType) : this(GetProviders(obj, tweenType), endValue, duration, function) { }
public FloatTweenSimulator(IList <IValueProvider <float> > providers, float endValue, float duration, ISimulateFunction function, TweenEndValueType tweenEndValueType) : base(providers, endValue, duration, function, tweenEndValueType) { }
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) { }
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; }
public MoveByCurveTween(AbstractCurve curve, object obj, float duration, ISimulateFunction function, TweenSpace space = TweenSpace.Global, Callback callback = null) : base(new CurveTweenSimulator(curve, obj, duration, function, TweenPerformer.GetShiftTypeBySpace(space)), duration, null, callback) { }
public ShortestRotationTween(Transform obj, Vector3 endValue, float duration, ISimulateFunction function, TweenSpace space) : base( obj, getAngles(space == TweenSpace.Global? obj.eulerAngles : obj.localEulerAngles, endValue), duration, function, TweenPerformer.GetShortestRotationBySpace(space), TweenEndValueType.Shift, null) { }
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; }
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()); }
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) { }
public CurveTweenSimulator(AbstractCurve curve, object obj, float duration, ISimulateFunction function, TweenType tweenType) : this(curve, GetProviders(obj, tweenType), duration, function) { }
public CurveTweenSimulator(AbstractCurve curve, IList <IValueProvider <Vector3> > providers, float duration, ISimulateFunction function) : base(providers, Vector3.zero, duration, function, TweenEndValueType.To) { this.curve = curve; }
public Vector2TweenSimulator(IList <IValueProvider <Vector2> > providers, Vector2 endValue, float duration, ISimulateFunction function, TweenEndValueType tweenEndValueType) : base(providers, endValue, duration, function, tweenEndValueType) { }
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()); }
public RotationTween(object obj, Vector3 shiftValue, float duration, ISimulateFunction function, TweenSpace tweenSpace = TweenSpace.Global, Callback callback = null) : base(new QuaternionTweenSimulator(obj, shiftValue, duration, function, tweenSpace == TweenSpace.Global ? TweenType.Rotation : TweenType.RotationLocal), duration, null, callback) { this.shiftValue = shiftValue; }
public FloatTweenSimulator(object obj, float endValue, float duration, ISimulateFunction function, TweenType tweenType, TweenEndValueType tweenEndValueType) : this(GetProviders(obj, tweenType), endValue, duration, function, tweenEndValueType) { }
public static RotationTween Play(object obj, Vector3 shiftValue, float duration, ISimulateFunction function, TweenSpace space = TweenSpace.Global, Callback callback = null) { return((RotationTween)(new RotationTween(obj, shiftValue, duration, function, space, callback)).PlayAndReturnSelf()); }
public QuaternionTweenSimulator(IList <IValueProvider <Quaternion> > providers, Vector3 endValue, float duration, ISimulateFunction function) : base(providers, Quaternion.identity, duration, function, TweenEndValueType.Shift) { this.endValue = endValue; floatShifts = new Vector3[providers.Count]; floatPreviosValue = new Vector3[providers.Count]; }
public MoveRectPositionTween(object obj, Vector2 endValue, float duration, ISimulateFunction function, TweenEndValueType endValueType = TweenEndValueType.To, Callback callback = null) : base(obj, endValue, duration, function, TweenType.MoveRectPosition, endValueType, callback) { }