Keeping track of enemy

Hey can anyone tell me how to keep track of how many enemys there are because when they are all dead im going to make a the game go to the next level. Please help thank you!

I recommend you to use GameObject.FindGameObjectsWithTag … Have a look here:

But don’t forget to tag all your enemies.

Good Luck.

Thank you!