using UnityEngine; using UnityEngine.Events; public class KimchiHitZone : MonoBehaviour { [SerializeField] private UnityEvent onKimchiHit; private bool hasBeenHit; private void OnTriggerEnter(Collider other) { if (hasBeenHit) return; if (!other.CompareTag("Kimchi")) return; hasBeenHit = true; onKimchiHit?.Invoke(); Debug.Log("김치싸대기 성공!"); } }