/// <summary> /// Gets a dialogue by name /// </summary> public DialogueScene GetDialogue(string name) { DialogueScene ds; if (!LoadedDialogues.TryGetValue(name, out ds)) { ds = DialogueParser.LoadDialogue(name); LoadedDialogues.Add(name, ds); CDebug.LogEx("Loaded new dialogue " + name, LogLevel.Verbose, this); } return(ds); }
internal static DialogueScene GetDialogue(string name) { DialogueScene ds; if (!Instance.LoadedDialogues.TryGetValue(name, out ds)) { ds = DialogueParser.LoadDialogue(name); Instance.LoadedDialogues.Add(name, ds); CDebug.LogEx("Loaded new dialogue " + name, LogLevel.Verbose, Instance); } return(ds); }