This commit is contained in:
LeeJaeHyun 2024-09-12 17:12:12 +09:00
parent ca5bbd6f29
commit 5722e3fa46

View File

@ -87,4 +87,12 @@ public class MonsterController : MonoBehaviour
yield return new WaitForSeconds(0.3f);
}
}
void OnCollisionEnter(Collision coll)
{
if (coll.collider.CompareTag("BULLET"))
{
Destroy(coll.gameObject);
}
}
}