2026-06-19 UI, UI로직

This commit is contained in:
skrwns304@gmail.com
2026-06-19 14:27:40 +09:00
parent b751a9ed66
commit b1e85a5b89
549 changed files with 18058 additions and 20 deletions

View File

@@ -0,0 +1,30 @@
using System;
using UnityEngine;
[Serializable]
public class TruthChoiceData
{
[Header("Choice")]
[TextArea(1, 3)]
[SerializeField] private string choiceText;
[Header("Result")]
[Min(0)]
[SerializeField] private int lieAmount = 0;
[TextArea(1, 4)]
[SerializeField] private string resultMessage;
[Tooltip("선택 후 버튼을 정답/진실처럼 강조할지 여부입니다. lieAmount가 0이면 자동으로 진실 선택처럼 볼 수 있습니다.")]
[SerializeField] private bool markAsTruthChoice;
public string ChoiceText => choiceText;
public int LieAmount => lieAmount;
public string ResultMessage => resultMessage;
public bool MarkAsTruthChoice => markAsTruthChoice || lieAmount <= 0;
public bool IsValid()
{
return !string.IsNullOrWhiteSpace(choiceText);
}
}