using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using System.IO; namespace BFEditor { public static class GameplayEditorMenu { [MenuItem("BF编辑器/新手引导编辑器")] static void OpenTutorialEditor() { var designExcelPath = ExportExcelTools.GetDesignExcelPath(); if (string.IsNullOrEmpty(designExcelPath) || !Directory.Exists(designExcelPath)) { OpenTutorialExcelPathWindow(); return; } TutorialConfigWindow window = (TutorialConfigWindow)EditorWindow.GetWindow("新手引导配置窗口"); window.Show(); } public static void OpenTutorialExcelPathWindow() { var window = (TutorialExcelPathWindow)EditorWindow.GetWindowWithRect(typeof(TutorialExcelPathWindow), new Rect(Screen.width / 2, Screen.height / 2, 500, 120), true); window.Show(); } } }