GoTween.containsTweenProperty C# (CSharp) Method

containsTweenProperty() public method

public containsTweenProperty ( AbstractTweenProperty, property ) : bool
property AbstractTweenProperty,
return bool
    public override bool containsTweenProperty( AbstractTweenProperty property )
    {
        return _tweenPropertyList.Contains( property );
    }

Usage Example

Esempio n. 1
0
    private static bool handleDuplicatePropertiesInTween(GoTween tween)
    {
        List <GoTween> list = tweensWithTarget(tween.target);
        List <AbstractTweenProperty> list2 = tween.allTweenProperties();

        for (int i = 0; i < list.Count; i++)
        {
            GoTween goTween = list[i];
            for (int j = 0; j < list2.Count; j++)
            {
                AbstractTweenProperty property = list2[j];
                if (goTween.containsTweenProperty(property))
                {
                    if (duplicatePropertyRule == GoDuplicatePropertyRuleType.DontAddCurrentProperty)
                    {
                        return(true);
                    }
                    if (duplicatePropertyRule == GoDuplicatePropertyRuleType.RemoveRunningProperty)
                    {
                        goTween.removeTweenProperty(property);
                    }
                    return(false);
                }
            }
        }
        return(false);
    }
All Usage Examples Of GoTween::containsTweenProperty