How To Use Sleep or Waitseconds command?

I used this code:

Application.LoadLevel(2);



WaitForSeconds (5);



Application.LoadLevel(3);



WaitForSeconds (6);



Application.LoadLevel(1);

But it doesnt wait at all.
it just skips the wait commands! how can i get it to wait?

Thanks in advance

WaitForSeconds() needs to be used with the yield statement. For example, in javascript do the following.

Application.LoadLevel(2);
yield WaitForSeconds(5);

This is because WaitForSeconds() is actually a constructor and returns immediately. The yield statement actually performs the wait.

http://unity3d.com/support/documentation/ScriptReference/WaitForSeconds.html