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.().enabled = false;
yield WaitForSeconds (2);
GetComponent.().enabled = true;
}
}
Tnx Adam
↧