示例#1
0
        public ATweener(T1 begin, T1 end, float duration, Func <T2> getter, Action <T2> setter, ITweenPlugin <T1, T2> plugin)
        {
            ATween.Initialize();

            this.begin           = begin;
            this.end             = end;
            this.duration        = duration;
            this.getter          = getter;
            this.setter          = setter;
            this.ease            = ATween.DefaultEase;
            this.plugin          = plugin;
            this.ignoreTimeScale = ATween.IgnoreTimeScale;
        }
示例#2
0
 public AccelerationComponent(double power, double duration, IEase ease)
 {
     Duration = duration;
     Power    = power;
     Ease     = ease;
 }
示例#3
0
 IATweener IATweener.SetEase(IEase ease)
 {
     return(SetEase(ease));
 }
示例#4
0
 public ATweener <T1, T2> SetEase(AnimationCurve animationCurve)
 {
     this.ease = new ATweening.Core.AnimationCurveEase(animationCurve);
     return(this);
 }
示例#5
0
 public ATweener <T1, T2> SetEase(IEase ease)
 {
     this.ease = ease;
     return(this);
 }