Load the next level once all enemy's are died...

I apologise for all these load level questions but could some one give me a script so when all of the robots from fps tut are died it loads the next level??

Thanks!!

I don't know that tut, but the easiest way would be to have a static variable, like nbLeft, that decrease when an enemy die, and when nbLeft == 0, Application.LoadLevel("[level name]"); Something like that (put that script on an empty GameObject, and whenever an enemy die, call [script below name].OnEnemyDeath()) :

var nbLeft = 10;

static function OnEnemyDeath()
{
   if( --nbLeft <= 0 ) Application.LoadLevel("[level name]");
}