public override void Open() { base.Open(); CheckAssignments(); DestroyInstantiatedMessages(); // Start with clean slate. if (headingText != null) { var conversation = DialogueManager.masterDatabase.GetConversation(DialogueManager.lastConversationID); if (conversation != null) { headingText.text = Field.LookupLocalizedValue(conversation.fields, "Title"); } } Tools.SetGameObjectActive(npcPreDelaySettings.preDelayIcon, false); Tools.SetGameObjectActive(pcPreDelaySettings.preDelayIcon, false); }
/// <summary> /// Looks up the localized value of a field for the current language. /// </summary> /// <returns>The localized value.</returns> /// <param name="title">The title of the field to look up.</param> public string LookupLocalizedValue(string title) { return(Field.LookupLocalizedValue(fields, title)); }