static void Init() { StoryEditor window = GetWindow <StoryEditor>(typeof(StoryEditor)); window.titleContent = new GUIContent("剧情编辑器"); window.wantsMouseMove = true; window.Show(); window.OnShowWindow(); }
static public void Init() { window = EditorWindow.GetWindow(typeof(StoryEditor)) as StoryEditor; window.Show(); //Application.targetFrameRate = 20; }