public void Create()
{
if (!this.CanCreate())
{
return;
}
this.CreateScript();
foreach (GameObject gameObject in AddComponentWindow.gameObjects)
{
MonoScript script = AssetDatabase.LoadAssetAtPath(this.TargetPath(), typeof(MonoScript)) as MonoScript;
script.SetScriptTypeWasJustCreatedFromComponentMenu();
InternalEditorUtility.AddScriptComponentUncheckedUndoable(gameObject, script);
}
AddComponentWindow.s_AddComponentWindow.Close();
}