Simple countdown code

I have a logo that will display in one scene, and I want it to display for, let’s say, a second, and then change to my menu scene. I have, oddly enough, never used a timer in my games. How would I do it?

You can use Coroutines and WaitForSeconds to delay things.

http://unity3d.com/support/documentation/ScriptReference/Coroutine.html

function Start(){

yield WaitForSeconds(1);

Application.LoadLevel("mainMenuSceneName");

}

Something along those lines should do it, depending on when you want it to start waiting from (that’ll start waiting as soon as the logo scene opens) :slight_smile: