jeudi 22 janvier 2015

; expected. Insert a semicolon at the end


boolean white = true;

function OnMouseDown()
{
if (white == true)
{
renderer.material.color = Color.green;
white = false;
}
else
{
renderer.material.color = Color.white;
white = true;
}
}


It is a JavaScript and I cant see anything wrong with it. The title says the error. Would appreciate any help! the code is for a object in Unity3d


Aucun commentaire:

Enregistrer un commentaire