public void OnNewLevelButtonClick() { LevelCreatorEditor.Initialize(); LevelCreatorEditor creatorEditor = (LevelCreatorEditor)EditorWindow.GetWindow(typeof(LevelCreatorEditor)); creatorEditor.InitializeLevelEditorConfiguration(configuration); }
public static void Initialize() { LevelCreatorEditor window = (LevelCreatorEditor)EditorWindow.GetWindow(typeof(LevelCreatorEditor)); window.title = "LevelCreatorEditor"; window.minSize = new Vector2(400, 100); window.maxSize = new Vector2(400, 100); window.Show(); }