hellooo, i'm having a little problem with switching scenes on my game, what im doing is trying to make a playable tutorial, there are some visuals on the screen telling you to press 'a' and i want it so that when you press 'a' , the game waits 3 seconds before loading the next scene, here is the code i've made and there are no errors but the game simply does not move to the next screen.
#pragma strict
function Start () {
if (Input.GetKeyDown("a"))//pressing the a key loads the game level,
{
yield WaitForSeconds (3);
Application.LoadLevel ("tutorial2");
}
}
function Update () {
}
↧