public void CopyFrom(IClassicHandlable source) { this._onPlay = source.OnPlay; this._onStop = source.OnStop; this._onUpdate = source.OnUpdate; this._onComplete = source.OnComplete; }
public static ObjectUpdater Create(IClassicHandlable source) { ObjectUpdater updator = Pool <ObjectUpdater> .Pop(); updator.Finish = source; return(updator); }
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; }
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); }
public IUpdating Create(IClassicHandlable source) { IUpdating updator = new ObjectUpdater(); updator.Finish = source; return(updator); }
public XHash AddHeight(float start, float end, bool isRelative = false) { XHash hash = this.GetStart(); hash.Height = start; this._start = hash; return(AddHeight(end, isRelative)); }
public XHash AddBottom(float start, float end, bool isRelative = false) { XHash hash = this.GetStart(); hash.Bottom = start; this._start = hash; return(AddBottom(end, isRelative)); }
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); }
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); }
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)); }
public XHash AddScaleZ(float start, float end, bool isRelative = false) { XHash hash = this.GetStart(); hash.ScaleZ = start; this._start = hash; return(AddScaleZ(end, isRelative)); }
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); }
public XColorHash AddAlpha(float start, float end, bool isRelative = false) { XColorHash hash = this.GetStart(); hash.Alpha = start; this._start = hash; return(AddAlpha(end, isRelative)); }
public XColorHash GetStart() { if (this._start == null) { this._start = new XColorHash(); } return((XColorHash)this._start); }
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); }
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); }
public IUpdating CreateContinous(GameObject target, IClassicHandlable dest, IClassicHandlable source) { DisplayContinousUpdater updater = new DisplayContinousUpdater(); updater.Start = source; updater.Finish = dest; updater.Target = target; return(updater); }
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); }
protected virtual void CopyFrom(AbstractTween source) { _ticker = source._ticker; _duration = source._duration; if (source._classicHandlers != null) { _classicHandlers = new XObjectHash(); _classicHandlers.CopyFrom(source._classicHandlers); } }