Advanced POC - portals, dialogue system + floating words, room loading
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Unheimlich.Data.Dialogues
|
||||
{
|
||||
[CreateAssetMenu(fileName = "NewConversation", menuName = "Unheimlich/Dialogue/Conversation")]
|
||||
public class DialogueConversation : ScriptableObject
|
||||
{
|
||||
[Header("Speaker Information")]
|
||||
[Tooltip("Name of the speaker (common to all texts in this conversation)")]
|
||||
public string SpeakerName;
|
||||
|
||||
[Header("Dialogue Flow")]
|
||||
[Tooltip("Ordered list of dialogue nodes for this conversation")]
|
||||
public List<DialogueNode> DialogueNodes = new List<DialogueNode>();
|
||||
|
||||
[Header("Localization")]
|
||||
[Tooltip("Localization ID for speaker name (optional)")]
|
||||
public string SpeakerNameLocalizationKey;
|
||||
|
||||
public DialogueNode GetFirstNode()
|
||||
{
|
||||
return DialogueNodes != null && DialogueNodes.Count > 0 ? DialogueNodes[0] : null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user