Files
Dino_Love_Simulation/Assets/02_Scripts/Story/ch3/KimchiHitZone.cs
dldydtn9755-crypto d970835039 0728
2026-07-28 21:21:29 +09:00

23 lines
451 B
C#

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("김치싸대기 성공!");
}
}