Files
Ipseity-Demo/Assets/Unheimlich_POC/Scripts/Datas/Dialogues/DialogueChoiceData.cs
T

31 lines
852 B
C#

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;
}
}
}