コード例 #1
0
    /**
     *
     */
    void OnGUI()
    {
        GUILayout.BeginArea(new Rect(10, 10, 230, 60));

        EditorGUILayout.BeginHorizontal();
        EditorGUILayout.LabelField("Spawner", GUILayout.Width(60)); GUILayout.Space(10);
        spawnerData = EditorGUILayout.ObjectField(spawnerData, typeof(SpawnerData), false) as SpawnerData;
        EditorGUILayout.EndHorizontal();

        GUILayout.Space(20);
        if (GUILayout.Button("Edit"))
        {
            StageEditorSpawnerEditionView.Init(spawnerData);
            Close();
        }

        GUILayout.EndArea();
    }
コード例 #2
0
 /**
  * Toogles the spawner creation window
  */
 public static void CreateSpawner()
 {
     StageEditorSpawnerEditionView.Init(null);
 }