- Home /
Question by
Agriggs · Feb 13, 2014 at 07:39 PM ·
sounddelaylevel load
How to make the level load delay?
i was wondering what id have to do to make it so my level doesn't load immediately after i reach the correct score, i want to fully here the sound my coin makes before it switches.
Comment
Answer by Attapi0 · Feb 13, 2014 at 08:01 PM
#pragmastrict
var time;
var LevelEnd = false;
function Update(){
if(LevelEnd == true){
time += Time.deltaTime;
}
if(time >= 2){
Application.LoadLevel("NextLevelName")
}
}
Something in this fashion.