public static void DoNarrativeAdded(NarrativeLogEntry data) { if (OnNarrativeAdded != null) { OnNarrativeAdded(data); } }
protected virtual void OnNarrativeAdded(NarrativeLogEntry entryAdded) { // Create a display for the new entry, and have it show in the UI. var newEntryDisplay = Instantiate(entryDisplayPrefab); newEntryDisplay.transform.SetParent(entryHolder, false); newEntryDisplay.ToDisplay = entryAdded; entryDisplays.Add(newEntryDisplay); StartCoroutine(ForceToBottom()); }
protected virtual void OnWriterState(Writer writer, WriterState writerState) { if (writerState == WriterState.End) { var sd = SayDialog.GetSayDialog(); if (sd != null) { NarrativeLogEntry entry = new NarrativeLogEntry() { name = sd.NameText, text = sd.StoryText }; AddLine(entry); } } }
protected virtual void OnNarrativeAdded(NarrativeLogEntry data) { UpdateNarrativeLogText(); }
protected virtual void OnNarrativeAdded(Entry newEntry) { saveData.Entries.Add(newEntry); }
/// <summary> /// Add a line of dialog to the Narrative Log /// </summary> public void AddLine(NarrativeLogEntry entry) { history.entries.Add(entry); DoNarrativeAdded(entry); }