Nez.Portable/Utils/Tweens/TweenManager.cs
/// <summary>
/// returns all the tweens that have a specific context. Tweens are returned as ITweenable since that is all
/// that TweenManager knows about.
/// </summary>
/// <returns>The tweens with context.</returns>
/// <param name="context">Context.</param>
returns all the tweens that have a specific context. Tweens are returned as ITweenable since that is all
that TweenManager knows about.
returns all the tweens that have a specific context . Tweens are returned as ITweenable since that is all that TweenManager knows about .
public static List<ITweenable> allTweensWithContext(object context)
        {
            var foundTweens = new List<ITweenable>();
            for (var i = 0; i < _instance._activeTweens.length; i++)
            {
                if (_instance._activeTweens.buffer[i] is ITweenable
                    && (_instance._activeTweens.buffer[i] as ITweenControl).context == context)
                    foundTweens.Add(_instance._activeTweens.buffer[i]);
            }
            return foundTweens;
        }
public static List < ITweenable > allTweensWithContext ( object context ) { var foundTweens = new List < ITweenable > ( ) ; for ( var i = 0 ; i < _instance . _activeTweens . length ; i ++ ) { if ( _instance . _activeTweens . buffer [ i ] is ITweenable && ( _instance . _activeTweens . buffer [ i ] as ITweenControl ) . context == context ) foundTweens . Add ( _instance . _activeTweens . buffer [ i ] ) ; } return foundTweens ; }
returns all the tweens that have a specific context.
returns all the tweens that have a specific context .
The tweens with context.
The tweens with context .
context
object
None