addTween() public static method

adds a tween to the active tweens list
public static addTween ( ITweenable tween ) : void
tween ITweenable Tween.
return void
Beispiel #1
0
        public virtual void start()
        {
            if (!_isFromValueOverridden)
            {
                _fromValue = _target.getTweenedValue();
            }

            if (_tweenState == TweenState.Complete)
            {
                _tweenState = TweenState.Running;
                TweenManager.addTween(this);
            }
        }
        public virtual void start()
        {
            // dont add ourself twice!
            if (_isCurrentlyManagedByTweenManager)
            {
                _isPaused = false;
                return;
            }

            TweenManager.addTween(this);
            _isCurrentlyManagedByTweenManager = true;
            _isPaused = false;
        }