private void OnDestroy()
 {
     dlw = null;
     if (daw != null)
     {
         daw.Close();
     }
 }
 public static void ShowWindow()
 {
     dlw = GetWindow <DialogueListWindow>("Dialogue List Window");
 }
 void OnEnable()
 {
     dlw = GetWindow <DialogueListWindow>("Dialogue List Window");
     EditorSceneManager.sceneOpened += SceneOpenedCallback;
     InitializeWindow();
 }
示例#4
0
 /// <summary>
 /// Initializes the variables needed by the editor.
 /// </summary>
 public void InitializeWindow(DialogueHub hubWindow, DialogueListWindow mainWindow)
 {
     listWindow = mainWindow;
     hub        = hubWindow;
     InitTextures();
 }