Delay Loading of next level

I am building a small board game. At the end of the game (when the ball consumes all the cubes on the board), the text shows up “You won!”. Then, the next level loads. So far so good.

However, I want that text to stay on the screen for a few seconds, and then the next level/scene to load.

I have looked at the “IEnumerator” solution with WaitForSeconds function but it simply does not work. Could someone help me please. All I want is some delay before the Application Load Level is called.

What do you mean it does not work? Is this a bug or your unsure how to use it?

An alternative is Invoke

void DoTheLoading()
{
Application.Load…
}

// Now call this in your function
Invoke( “DoTheLoading” 5 ); // 5 sec delay

Thank you. I will give that a go :slight_smile: