Hi there,
I have a script to have the 3… 2…1 GO!
But the level loads straight away. I want the level to hold all controls until the go has finished. How do i go about doing this? Where about do I put “start level” in the script.
Sorry, I’m not a programmer more a designer :3
var Text : GUIText;
private var starttime = false;
function Start()
{
starttime = true;
if (starttime == true)
{
StartCoroutine("CountDown");
}
}
function CountDown()
{
yield WaitForSeconds(1);
Text.text = "3";
yield WaitForSeconds(1);
Text.text = "2";
yield WaitForSeconds(1);
Text.text = "1";
yield WaitForSeconds(1);
Text.text = "GO!";
}
Thank you very much