removeTween() 공개 정적인 메소드

removes a tween from the active tweens list
public static removeTween ( ITweenable tween ) : void
tween ITweenable Tween.
리턴 void
예제 #1
0
        public void stop(bool bringToCompletion = false)
        {
            _tweenState = TweenState.Complete;

            if (bringToCompletion)
            {
                // if we are running in reverse we finish up at 0 else we go to duration
                _elapsedTime = _isRunningInReverse ? 0f : _duration;
                _loopType    = LoopType.None;
                _loops       = 0;

                // TweenManager will handle removal on the next tick
            }
            else
            {
                TweenManager.removeTween(this);
            }
        }
예제 #2
0
 public virtual void stop(bool bringToCompletion = false)
 {
     TweenManager.removeTween(this);
     _isCurrentlyManagedByTweenManager = false;
     _isPaused = true;
 }