Files
OGG/Assets/Scripts/DialogueLine.cs

18 lines
496 B
C#

using System;
using UnityEngine;
/// <summary>
/// One "page" of dialogue: a speaker name + an array of text lines.
/// Fill these out in the Inspector on a DialogueNPC component.
/// </summary>
[Serializable]
public class DialogueLine
{
[Tooltip("Name shown above the text box. Leave blank to hide the name bar.")]
public string speakerName = "???";
[Tooltip("Each entry is one page of dialogue. Press E to advance.")]
[TextArea(2, 6)]
public string[] pages = { "..." };
}