In my script I have a void OnTriggerEnter method
void OnTriggerEnter(Collider col)
{
if (col.gameObject.tag == “Bullet”)
{
Destroy(GameObject.Find(“Box”));
print(“THE BOX Destroyed”);
}
}
I’m trying to get it so my bullets destroy the objects tagged as box, i have multiple of them on my level, but when i shoot my bullets it destroys the boxes, but it doesn’t destroy the boxes when it hits the boxes. It destroys them when it my bullets fly out.