Nez.Portable/Utils/Tweens/TweenManager.cs
/// <summary>
/// stops all the tweens that have a specific target
/// that TweenManager knows about.
/// </summary>
/// <param name="target">target.</param>
stops all the tweens that have a specific target
that TweenManager knows about.
stops all the tweens that have a specific target that TweenManager knows about .
public static void stopAllTweensWithTarget(object target, bool bringToCompletion = false)
        {
            for (var i = _instance._activeTweens.length - 1; i >= 0; --i)
            {
                if (_instance._activeTweens[i] is ITweenControl)
                {
                    var tweenControl = _instance._activeTweens.buffer[i] as ITweenControl;
                    if (tweenControl.getTargetObject() == target)
                        tweenControl.stop(bringToCompletion);
                }
            }
        }
public static void stopAllTweensWithTarget ( object target , bool bringToCompletion = false ) { for ( var i = _instance . _activeTweens . length - 1 ; i >= 0 ; -- i ) { if ( _instance . _activeTweens [ i ] is ITweenControl ) { var tweenControl = _instance . _activeTweens . buffer [ i ] as ITweenControl ; if ( tweenControl . getTargetObject ( ) == target ) tweenControl . stop ( bringToCompletion ) ; } } }
stops all the tweens that have a specific target
that TweenManager knows about.
stops all the tweens that have a specific target that TweenManager knows about .
target
object
None
bringToCompletion
bool