removeTween() public static method

removes a tween from the active tweens list
public static removeTween ( ITweenable tween ) : void
tween ITweenable Tween.
return void
Beispiel #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);
            }
        }
 public virtual void stop(bool bringToCompletion = false)
 {
     TweenManager.removeTween(this);
     _isCurrentlyManagedByTweenManager = false;
     _isPaused = true;
 }