Nez.Portable/Utils/Tweens/TweenManager.cs
/// <summary>
/// stops all the tweens with a given context
/// </summary>
/// <returns>The tweens with context.</returns>
/// <param name="context">Context.</param>
stops all the tweens with a given context
stops all the tweens with a given context
public static void stopAllTweensWithContext(object context, bool bringToCompletion = false)
        {
            for (var i = _instance._activeTweens.length - 1; i >= 0; --i)
            {
                if (_instance._activeTweens.buffer[i] is ITweenable
                    && (_instance._activeTweens.buffer[i] as ITweenControl).context == context)
                    _instance._activeTweens.buffer[i].stop(bringToCompletion);
            }
        }
public static void stopAllTweensWithContext ( object context , bool bringToCompletion = false ) { for ( var i = _instance . _activeTweens . length - 1 ; i >= 0 ; -- i ) { if ( _instance . _activeTweens . buffer [ i ] is ITweenable && ( _instance . _activeTweens . buffer [ i ] as ITweenControl ) . context == context ) _instance . _activeTweens . buffer [ i ] . stop ( bringToCompletion ) ; } }
stops all the tweens with a given context
stops all the tweens with a given context
The tweens with context.
The tweens with context .
context
object
None
bringToCompletion
bool