Exemple #1
0
 public override void Dispose()
 {
     base.Dispose();
     this._source        = null;
     this._updater       = null;
     this._setter        = null;
     this._controlPoints = null;
     this._startValue    = 0f;
     this._endValue      = 0f;
 }
Exemple #2
0
    //Value - Single Bezier
    public static IXTween ToValueBezier(Action <float> setter, float start, float end, float[] controlPoints, float time, IEasing easing = null, bool realTime = false)
    {
        XEventHash hash = Pool <XEventHash> .Pop();

        ObjectTween tween = Pool <ObjectTween> .Pop();

        tween.Initialize(realTime ? (ITimer)_tickerReal : _ticker, 0);
        GetSetUpdater updater = UpdaterFactory.Create(setter, start, end, controlPoints, hash);

        tween.Updater         = updater;
        tween.ClassicHandlers = hash;
        tween.Time            = time;
        tween.Easing          = (easing != null) ? easing : Linear.easeNone;
        return(tween);
    }
Exemple #3
0
        public static GetSetUpdater Create(Action <float> setter, float start, float end, float[] controlPoints, XEventHash hash)
        {
            GetSetUpdater updater = Pool <GetSetUpdater> .Pop();

            updater.Setter        = setter;
            updater.StartValue    = start;
            updater.EndValue      = end;
            updater.ControlPoints = controlPoints;
            updater.Finish        = hash;
            return(updater);
        }