added dialogue manager and radar

This commit is contained in:
2026-02-18 13:53:02 +00:00
parent e1df65bce2
commit 23362e7bdd
11 changed files with 915 additions and 3 deletions

View 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 = { "..." };
}