Exemple #1
0
 public void CopyFrom(IClassicHandlable source)
 {
     this._onPlay     = source.OnPlay;
     this._onStop     = source.OnStop;
     this._onUpdate   = source.OnUpdate;
     this._onComplete = source.OnComplete;
 }
Exemple #2
0
        public static ObjectUpdater Create(IClassicHandlable source)
        {
            ObjectUpdater updator = Pool <ObjectUpdater> .Pop();

            updator.Finish = source;
            return(updator);
        }
Exemple #3
0
        public virtual void Dispose()
        {
            WaitForTweenPlay wait;

            if ((wait = this._ticker as WaitForTweenPlay) != null)
            {
                wait.PoolPush();
            }
            this._ticker          = null;
            this._time            = 0f;
            this._position        = 0f;
            this._reverse         = false;
            this._preDelay        = 0f;
            this._preDelayTarget  = 0f;
            this._postDelay       = 0f;
            this._postDelayTarget = 0f;
            this._duration        = 0f;
            this._durationTarget  = 0f;
            this._startTime       = 0f;
            this._scale           = 1f;
            this._repeatTotal     = 1;
            this._repeatCurrent   = 0;
            this._isPlaying       = false;
            this._isRealTime      = false;
            this._frameSkip       = 0;
            this._frameSkipCount  = 0;
            this._isGroup         = false;
            this._autoDispose     = true;
            this._classicHandlers = null;
        }
Exemple #4
0
 public XHash SizeDelta(Vector2 start, Vector2 end, bool isRelative = false)
 {
     this._start = this.GetStart().SizeDelta(start, isRelative);
     this.AddWidth(end.x, isRelative);
     this.AddHeight(end.y, isRelative);
     return(this);
 }
Exemple #5
0
        public IUpdating Create(IClassicHandlable source)
        {
            IUpdating updator = new ObjectUpdater();

            updator.Finish = source;
            return(updator);
        }
Exemple #6
0
    public XHash AddHeight(float start, float end, bool isRelative = false)
    {
        XHash hash = this.GetStart();

        hash.Height = start;
        this._start = hash;
        return(AddHeight(end, isRelative));
    }
Exemple #7
0
    public XHash AddBottom(float start, float end, bool isRelative = false)
    {
        XHash hash = this.GetStart();

        hash.Bottom = start;
        this._start = hash;
        return(AddBottom(end, isRelative));
    }
Exemple #8
0
 public XHash Rotation(Vector3 start, Vector3 end, bool isRelative = false)
 {
     this._start = this.GetStart().Rotation(start, isRelative);
     this.AddRotationX(end.x, isRelative);
     this.AddRotationY(end.y, isRelative);
     this.AddRotationZ(end.z, isRelative);
     return(this);
 }
Exemple #9
0
 public XHash Scale(Vector3 start, Vector3 end, bool isRelative = false)
 {
     this._start = this.GetStart().Scale(start, isRelative);
     this.AddScaleX(end.x, isRelative);
     this.AddScaleY(end.y, isRelative);
     this.AddScaleZ(end.z, isRelative);
     return(this);
 }
Exemple #10
0
    public XHash AddRotationZ(float start, float end, bool clockwise, int rotateCount = 0, bool isRelative = false)
    {
        XHash hash = this.GetStart();

        hash.RotationZ = start;
        this._start    = hash;
        return(AddRotationZ(end, clockwise, rotateCount, isRelative));
    }
Exemple #11
0
    public XHash AddScaleZ(float start, float end, bool isRelative = false)
    {
        XHash hash = this.GetStart();

        hash.ScaleZ = start;
        this._start = hash;
        return(AddScaleZ(end, isRelative));
    }
Exemple #12
0
 public XHash Position(Vector3 start, Vector3 end, bool isRelative = false)
 {
     this._start = this.GetStart().Position(start, isRelative);
     this.AddX(end.x, isRelative);
     this.AddY(end.y, isRelative);
     this.AddZ(end.z, isRelative);
     return(this);
 }
Exemple #13
0
    public XColorHash AddAlpha(float start, float end, bool isRelative = false)
    {
        XColorHash hash = this.GetStart();

        hash.Alpha  = start;
        this._start = hash;
        return(AddAlpha(end, isRelative));
    }
Exemple #14
0
 public XColorHash GetStart()
 {
     if (this._start == null)
     {
         this._start = new XColorHash();
     }
     return((XColorHash)this._start);
 }
Exemple #15
0
 public XColorHash Color(Color start, Color end, bool isRelative = false)
 {
     this._start = this.GetStart().Color(start, isRelative);
     this.AddRed(end.r, isRelative);
     this.AddGreen(end.g, isRelative);
     this.AddBlue(end.b, isRelative);
     return(this);
 }
Exemple #16
0
        public static DisplayContinousUpdater CreateContinous(GameObject target, IClassicHandlable dest, IClassicHandlable source)
        {
            DisplayContinousUpdater updater = Pool <DisplayContinousUpdater> .Pop();

            updater.Start  = source;
            updater.Finish = dest;
            updater.Target = target;
            return(updater);
        }
Exemple #17
0
        public IUpdating CreateContinous(GameObject target, IClassicHandlable dest, IClassicHandlable source)
        {
            DisplayContinousUpdater updater = new DisplayContinousUpdater();

            updater.Start  = source;
            updater.Finish = dest;
            updater.Target = target;
            return(updater);
        }
Exemple #18
0
 public XHash Rect(Toki.Tween.UIRect start, Toki.Tween.UIRect end, bool isRelative = false)
 {
     this._start = this.GetStart().Rect(start, isRelative);
     this.AddLeft(end.left, isRelative);
     this.AddTop(end.top, isRelative);
     this.AddRight(end.right, isRelative);
     this.AddBottom(end.bottom, isRelative);
     return(this);
 }
Exemple #19
0
 protected virtual void CopyFrom(AbstractTween source)
 {
     _ticker   = source._ticker;
     _duration = source._duration;
     if (source._classicHandlers != null)
     {
         _classicHandlers = new XObjectHash();
         _classicHandlers.CopyFrom(source._classicHandlers);
     }
 }