using System; using TMPro; using UnityEngine; using UnityEngine.UI; namespace BrewMonster.Scripts.ChatUI { /// /// Một ô emoji trong bảng chọn emoji — One emoji cell in the emoji picker grid. /// Gán lên prefab Button có Image + (tuỳ chọn) TMP_Text cho tooltip. /// [RequireComponent(typeof(Button))] public class EmojiButtonCell : MonoBehaviour { [SerializeField] Image _icon; [Tooltip("Tuỳ chọn: hiện hint text (tên emoji). Optional: show hint/tooltip text.")] public event Action OnClicked; // (emotionSet, emotionIndex) private int _emotionSet; private int _emotionIndex; private Button _button; private void Awake() { _button = GetComponent