load a scene after time

pretty much I have a scene thats like a splash screen I have a movie texture that displays my companys logo and plays some music for about 15 seconds and I’m wondering how would I load a scene after the movie plays? Keep in mind yield WaitForSeconds doesn’t work

function Update () {
renderer.material.mainTexture.Play();
Application.LoadLevel(“World”);
}
thats my code for now. With it like that it doesn’t really display the splash screen just jumps to the next scene.

You could also use Invoke:

function Start () {
...................
renderer.material.mainTexture.Play();
Invoke("nextScene", 15);
}

function nextScene () {
Application.LoadLevel("World");
}

in JS, this should be something like:

function Start() {
    renderer.material.mainTexture.Play();
    yield WaitForSeconds(15);
    Application.LoadLevel("World");
}

or in C#

public MovieTexture movieTexture;

IEnumerator Start() {
    renderer.material.mainTexture = movieTexture;
    movieTexture.Play();
    yield return new WaitForSeconds( movieTexture.duration );
    Application.LoadLevel("World");
}

You need an old fashion timer then !

if( timer > duration ) // load level
timere += Time.deltaTime;

or

if( Time.time - startTime > duration ) // load

out of curiosity, why coroutines doesn’t work ? It’s a monobehaviour, you don’t need to change the time scale, so I don’t see any reason. Platform issue ?