Hi Guys
I have a loading screen where in the scene i have an image sequence showing but i have to put a 10 second delay on loading the level so it show all of them because after the 10 seconds everything stops whilst the level loads.
How do i get it so the level is loading in the background whilst the images are showing.
This is my loading screen code:
var seconds : float;
var levelToLoad : String;
function Start() {
yield new WaitForSeconds(seconds);
OpenLevel(levelToLoad);
}
function Update () {
if(Input.GetKeyUp(KeyCode.Return) ||
Input.GetKeyUp(KeyCode.KeypadEnter)){
OpenLevel(levelToLoad);
}
}
function OpenLevel(level : String){
Application.LoadLevel("DemoLevel");
}