Create a [window][1], iterate over your enum and add buttons to the window. When the user presses a button, look to see if a GO is selected, and [add][2] the script. I think the docs just about cover it. If you are struggling, just post the code you've written and ask for help.
[1]: http://docs.unity3d.com/ScriptReference/EditorWindow.html
[2]: http://docs.unity3d.com/ScriptReference/GameObject.AddComponent.html
↧