Advanced POC - portals, dialogue system + floating words, room loading
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Unheimlich.Data.Dialogues
|
||||
{
|
||||
[System.Serializable]
|
||||
public class DialogueChoiceData
|
||||
{
|
||||
[Header("Choice Content")]
|
||||
[TextArea(2, 5)]
|
||||
[Tooltip("Text displayed on the choice button")]
|
||||
public string ChoiceText;
|
||||
|
||||
[Header("Localization")]
|
||||
[Tooltip("Localization key for the choice text")]
|
||||
public string ChoiceTextLocalizationKey;
|
||||
|
||||
[Header("Flow")]
|
||||
[Tooltip("Direct reference to the next DialogueNode")]
|
||||
public DialogueNode NextNode;
|
||||
|
||||
[Header("Conditions (Optional)")]
|
||||
[Tooltip("Required condition to display this choice (optional, for future use)")]
|
||||
public string RequiredCondition;
|
||||
|
||||
public bool IsValid()
|
||||
{
|
||||
return !string.IsNullOrEmpty(ChoiceText) && NextNode != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user