private bool DoesMaterialHaveSpriteTexture(out bool tiled)
{
tiled = false;
Material sharedMaterial = (base.target as SpriteRenderer).sharedMaterial;
if (sharedMaterial == null)
{
return true;
}
if (sharedMaterial.HasProperty("_MainTex"))
{
Vector2 textureOffset = sharedMaterial.GetTextureOffset("_MainTex");
Vector2 textureScale = sharedMaterial.GetTextureScale("_MainTex");
if (((textureOffset.x != 0f) || (textureOffset.y != 0f)) || ((textureScale.x != 1f) || (textureScale.y != 1f)))
{
tiled = true;
}
}
return sharedMaterial.HasProperty("_MainTex");
}