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(); }
/// <summary> /// Initializes the variables needed by the editor. /// </summary> public void InitializeWindow(DialogueHub hubWindow, DialogueListWindow mainWindow) { listWindow = mainWindow; hub = hubWindow; InitTextures(); }