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);
}