2D Collision causing death of enemies

I am creating a 2D shooter game (like asteroids, galactica, etc.). I’ve built sort of a big world where you have to kill 50 enemies to win the level. I know the 50 kills is set up right, but I’m winning after about 8 kills. I believe the enemies are colliding with the walls and dying. How can I prevent this suicidal attempt among my enemies?

I am using a rigidbody 2D and Polygon Collider 2D for my enemies. I am using a rigidbody 2D and Circle Collider 2D for my walls. I am not sure what setting may cause enemies to die upon collision.

Any help would be greatly appreciated.

There’s nothing in 2D Physics that destroys GameObjects so it isn’t destroying enemies, your scripts will be doing that so maybe you need to look at your scripts for where you’re destroying things. A “Destroy(obj)” you forgot about somewhere maybe.

Above is just a high level description, there isn’t anything to help with unfortunately.

Ok, great. Thanks. At least that tells me where to look. I’ll check over the scripts.