Initial commit: Unity 프로젝트 셋업 + 다이얼로그 시스템 이전

This commit is contained in:
2026-07-04 15:38:52 +09:00
commit 4d94878dbe
1310 changed files with 141631 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using System;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class DialogChoiceRow : MonoBehaviour
{
[SerializeField] private TMP_Text _text;
[SerializeField] private Button _button;
public event Action<int> OnClicked;
private int _index;
private void Awake()
{
if (_button != null)
_button.onClick.AddListener(() => OnClicked?.Invoke(_index));
}
public void Bind(int index, string text)
{
_index = index;
if (_text != null) _text.text = text;
}
}