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