public void Begin(TweenHandler handler = null) { Assert.IsTrue(!isRunning); if (handler == null) { handler = TweenHandler.Instance; } handler.BeginTween(this); }
public virtual bool Begin(TweenHandler handler = null) { if (_tween != null && !IsRunning) { _tween.Begin(handler); return true; } else { return false; } }
public override bool Begin(TweenHandler handler = null) { if (!currentAsFrom && fromTrans != null) { (tween as TweenMove).From = isLocal ? fromTrans.localPosition : fromTrans.position; } if (!currentAsTo && toTrans != null) { (tween as TweenMove).To = isLocal ? toTrans.localPosition : toTrans.position; } return base.Begin(handler); }
public virtual bool Begin(TweenHandler handler = null) { if (_tween != null && !IsRunning) { _tween.Begin(handler); return(true); } else { return(false); } }
public override bool Begin(TweenHandler handler = null) { if (!currentAsFrom && fromTrans != null) { (tween as TweenMove).From = isLocal ? fromTrans.localPosition : fromTrans.position; } if (!currentAsTo && toTrans != null) { (tween as TweenMove).To = isLocal ? toTrans.localPosition : toTrans.position; } return(base.Begin(handler)); }