using UnityEngine; using UnityEngine.UI; public class SingleInteractableButtonHandler : MonoBehaviour { [Tooltip("이 버튼이 한 번만 클릭되도록 제한할지 여부")] [SerializeField] private bool enableOneTimeClick = true; private Button _button; private bool hasBeenClicked = false; private void Awake() { // 버튼 컴포넌트 가져오기 _button = GetComponent