public bool MissingMonoBehaviourGUI()
{
base.serializedObject.Update();
SerializedProperty property = base.serializedObject.FindProperty("m_Script");
if (property == null)
{
return false;
}
EditorGUILayout.PropertyField(property, new GUILayoutOption[0]);
MonoScript objectReferenceValue = property.objectReferenceValue as MonoScript;
bool flag2 = true;
if ((objectReferenceValue != null) && objectReferenceValue.GetScriptTypeWasJustCreatedFromComponentMenu())
{
flag2 = false;
}
if (flag2)
{
EditorGUILayout.HelpBox(EditorGUIUtility.TextContent("The associated script can not be loaded.\nPlease fix any compile errors\nand assign a valid script.").text, MessageType.Warning, true);
}
if (base.serializedObject.ApplyModifiedProperties())
{
EditorUtility.ForceRebuildInspectors();
}
return true;
}