how do Application load level with autotime

See Image

i have menu button “Start” in Home Menu
when i click start.
Application.LoadLevel(“Start”);

this script in start

using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour {
void Example() {
Application.LoadLevel("Start Game");
}
}

how to change that script automattically go to level “Start Game” in 5 seconds.

https://unity3d.com/learn/tutorials/modules/intermediate/scripting/coroutines

setup “Example()” as a coroutine with a yield for the amount of time before the LoadLevel call. Start the coroutine from the class’s “Start” function.

1 Like