게임클리어 이벤트

This commit is contained in:
2026-06-23 17:03:38 +09:00
parent fecc7556d6
commit b85855d4d6
25 changed files with 1317 additions and 28 deletions

View File

@@ -47,7 +47,7 @@ public async Awaitable<int> Show(string choiceQuestion, List<DialogChoice> choic
for (int i = 0; i < choices.Count; i++)
{
var row = Instantiate(_rowPrefab, _rowContainer);
row.Bind(i, choices[i].ChoiceText);
row.Bind(i, DialogVariables.Format(choices[i].ChoiceText)); // {key} 토큰 치환
row.OnClicked += HandleClicked;
_rows.Add(row);
}
@@ -85,8 +85,9 @@ private void Hide()
private void SetQuestion(string question)
{
if (ChoiceQuestion == null) return;
bool hasQuestion = !string.IsNullOrWhiteSpace(question);
ChoiceQuestion.text = hasQuestion ? question : string.Empty;
string text = DialogVariables.Format(question); // {key} 토큰 치환
bool hasQuestion = !string.IsNullOrWhiteSpace(text);
ChoiceQuestion.text = hasQuestion ? text : string.Empty;
ChoiceQuestion.gameObject.SetActive(hasQuestion);
}

View File

@@ -53,9 +53,9 @@ public void Show(CharacterData speaker, string text, float chestHeight, float fo
_activeLateralOffset = lateralOffset;
if (_speakerName != null)
_speakerName.text = speaker != null ? speaker.Name : string.Empty;
_speakerName.text = speaker != null ? DialogVariables.Format(speaker.Name) : string.Empty;
if (_dialogueText != null)
_dialogueText.text = text;
_dialogueText.text = DialogVariables.Format(text); // {key} 토큰 치환
if (_panel != null) _panel.SetActive(true);
}