This is a small part of a script for my enemy. If the enemy collides with an object & the objects tag is “Lazer” then delete the enemy. When the enemy collides with the lazer, it doesn’t kill it. Anyone know why? (PS. All Objects Have 2D Colliders!)
Do your objects have rigidbodies?
Your code seems good. Probably the enemy hasnt a rigidbody. So, collision cant be calculated. Try to add a rigidbody2d component… It should fix