Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Whats wrongs with my code?

$
0
0
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

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>