i made this script Code (csharp): var nxtlvl : boolean = false; React (); { nxtlvl = true; } function update () { if(nxtlvl) { getcomponent("Mesh Renderer"); } } and it says = should be a : what is wrong with it
Theres a fair amount wrong with that script, Code (csharp): React (); // should be function React () { Code (csharp): function update () { // should be function Update () { Code (csharp): getcomponent ("Mesh Renderer"); // should be GetComponent (MeshRenderer); Even with that, the GetComponent call isn't doing anything.