コード例 #1
0
        public void OnNewLevelButtonClick()
        {
            LevelCreatorEditor.Initialize();
            LevelCreatorEditor creatorEditor = (LevelCreatorEditor)EditorWindow.GetWindow(typeof(LevelCreatorEditor));

            creatorEditor.InitializeLevelEditorConfiguration(configuration);
        }
コード例 #2
0
        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();
        }