public Vector2 GetTextureScale(string propertyName, out bool hasMixedValueX, out bool hasMixedValueY)
{
hasMixedValueX = false;
hasMixedValueY = false;
Vector2 textureScale = ((Material) base.targets[0]).GetTextureScale(propertyName);
for (int i = 1; i < base.targets.Length; i++)
{
Vector2 vector2 = ((Material) base.targets[i]).GetTextureScale(propertyName);
if (vector2.x != textureScale.x)
{
hasMixedValueX = true;
}
if (vector2.y != textureScale.y)
{
hasMixedValueY = true;
}
if (hasMixedValueX && hasMixedValueY)
{
return textureScale;
}
}
return textureScale;
}