/// <summary> /// Method responsible for opening the Dialogue Window /// where the node system is placed. /// This overload is called when the program tries to load /// an already existing Dialogue /// </summary> /// <param name="ds">Dialogue to be loaded</param> public static void OpenDialogueGraphWindow(DialogueScript ds) { DialogueGraph window = GetWindow <DialogueGraph>(); window.titleContent = new GUIContent(text: ds.DialogueName); SaveLoadUtils svUtil = new SaveLoadUtils(); svUtil.LoadDialogues(window.graphview, ds); }
public static void OpenDialogueGraphWindow() { DialogueGraph window = GetWindow <DialogueGraph>(); window.titleContent = new GUIContent(text: "Dialogue Graph"); }