Beispiel #1
0
    static void Init()
    {
        StoryEditor window = GetWindow <StoryEditor>(typeof(StoryEditor));

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