Example #1
0
        /// <summary>
        /// Gets a monologue by name
        /// </summary>
        public Monologue GetMonologue(string name)
        {
            Monologue m;

            if (!LoadedMonologues.TryGetValue(name, out m))
            {
                m = MonologueParser.LoadMonologue(name);
                LoadedMonologues.Add(name, m);
                CDebug.LogEx("Loaded new monologue " + name, LogLevel.Verbose, this);
            }
            return(m);
        }
Example #2
0
        internal static Monologue GetMonologue(string name)
        {
            Monologue m;

            if (!Instance.LoadedMonologues.TryGetValue(name, out m))
            {
                m = MonologueParser.LoadMonologue(name);
                Instance.LoadedMonologues.Add(name, m);
                CDebug.LogEx("Loaded new monologue " + name, LogLevel.Verbose, Instance);
            }
            return(m);
        }