I have set up the logic of my game so that when the enemy which is part of the enemies family has <= 0 health they get destroyed.
But when I destroy it, it destroys all instances of the enemies which are part of the family.
So if I have two enemies and I attack only one of them, both get destroyed if their health goes 0 or below 0.
How can I fix this?