In my game, when I try to destroy an enemy (the enemies are all just clones of one enemy type) using the code below, it destroys not only the specific enemy that I shot, it destroys all of the enemies that are in the scene, how can I make this stop happening? Thanks
static var EHP=3;
function Update{
if (EHP==0){Destroy (gameObject,0);};
}