/// <summary> /// Adds a Conversation to the database. /// </summary> /// <param name='conversation'> /// The conversation to add. /// </param> public void AddConversation(Conversation conversation) { SetupCaches(); var title = conversation.Title; //--- Removed for speed: if (DialogueDebug.logInfo) Debug.Log("Dialogue System: Add Conversation: " + title); if (!conversationTitleCache.ContainsKey(title)) { conversationTitleCache.Add(title, conversation); } conversations.Add(conversation); LinkUtility.SortOutgoingLinks(this, conversation); }
/// <summary> /// Adds a Conversation to the database. /// </summary> /// <param name='conversation'> /// The conversation to add. /// </param> public void AddConversation(Conversation conversation) { conversations.Add(conversation); LinkUtility.SortOutgoingLinks(this, conversation); }