private bool PixelHasAlpha(int x, int y)
{
if (base.m_Texture == null)
{
return false;
}
if (s_AlphaPixelCache == null)
{
s_AlphaPixelCache = new bool[base.m_Texture.width * base.m_Texture.height];
Color32[] colorArray = base.m_Texture.GetPixels32();
for (int i = 0; i < colorArray.Length; i++)
{
s_AlphaPixelCache[i] = colorArray[i].a != 0;
}
}
int index = (y * base.m_Texture.width) + x;
return s_AlphaPixelCache[index];
}