Пример #1
0
    void OnGUI()
    {
        className = EditorGUILayout.TextField(editorWindowText, className);

        if (GUILayout.Button("Create class"))
        {
            BehaviourCreator.CreateScript(className);
            Close();
        }
    }
Пример #2
0
 /// <summary>
 /// Use this function to register client implementation of behaviour creators.
 /// </summary>
 /// <param name="b">An implementation of the BehaviourCreator Interface</param>
 public static void AddBehaviourCreator(BehaviourCreator b)
 {
     mBehaviourCreators.Add(b);
 }