private void CookieGUI(TextureInspectorGUIElement guiElements)
{
CookieMode spot;
EditorGUI.BeginChangeCheck();
if (this.m_BorderMipMap.intValue > 0)
{
spot = CookieMode.Spot;
}
else if (this.m_TextureShape.intValue == 2)
{
spot = CookieMode.Point;
}
else
{
spot = CookieMode.Directional;
}
spot = (CookieMode) EditorGUILayout.Popup(s_Styles.cookieType, (int) spot, s_Styles.cookieOptions, new GUILayoutOption[0]);
if (EditorGUI.EndChangeCheck())
{
this.SetCookieMode(spot);
}
if (spot == CookieMode.Point)
{
this.m_TextureShape.intValue = 2;
}
else
{
this.m_TextureShape.intValue = 1;
}
}