This commit is contained in:
LeeJaeHyun 2024-09-12 13:05:56 +09:00
parent a4dc49242d
commit 4f1d32881f

View File

@ -6,7 +6,9 @@ public class RemoveBullet : MonoBehaviour
{
void OnCollisionEnter(Collision coll)
{
if (coll.collider.tag == "BULLET")
// Garbage Collection
// if (coll.collider.tag == "BULLET")
if (coll.collider.CompareTag("BULLET"))
{
Destroy(coll.gameObject);
}