var Enemy = GameObject.FindWithTag("Test");
Kill() {
Destroy(Enemy);
}
It'll only kill a couple of the enemies...
Hey, so I have this script, that gets the distance between 2 gameobjects, and if they distance is below a certain amount, it'll destroy the game object with the tag of Enemy, but the problem is, I have about 10 of these, all with the same tags, and the way I'm doing it isn't working, it only destroys one of the game objects, rather than all of them.
The reasoning why it does this is obvious, but I don't know how to fix it...