Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        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);
        }