added dialogue manager and radar
This commit is contained in:
17
Assets/Scripts/DialogueLine.cs
Normal file
17
Assets/Scripts/DialogueLine.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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 = { "..." };
|
||||
}
|
||||
Reference in New Issue
Block a user