I am making a car game were the player hits the cars and if all the cars die then it’ll load a new level. I was thinking how about if all enemy cars die and a cube becomes activated so we then need to collide with it and a new level loads up. if you answer this question and it helps then ill give you a copy of the game for free.
Say there were five cars. Make a static variable thats 5. Then whenever a car dies subtract one from that number. When the number gets to zero you can have the scene fade to a loading screen and load the new level. Or you can make a object appear to send you to the next level in the same way.
The script to fade is here: unifycommunity.com
Create a script that triggers the next level to load when all the cars are destroyed. Create two variables for the number of cars and the number of cars destroyed and set the destroyed cars variable to zero. Every time a car is destroyed, increment that variable and when it is equal to the total number of cars (signifying all the cars are destroyed) load the next level using Application.LoadLevel.