Hi,
cant seem to figure out whats wrong with this code
#pragma strict
function Start () {
Debug.Log("The game has started");
var gameStart : boolean = true;
}
function Update () {
if(gameStart === true) {
yield WaitForSeconds (2);
GetComponent.<Renderer>().enabled = false;
yield WaitForSeconds (2);
GetComponent.<Renderer>().enabled = true;
}
}
Tnx Adam