- Home /
UNEXPECTED TOKEN ) PLEASE HELP ME ;(
So im making a game and i currently and it so when i click on my 3d text it load a level and the text switch color. Heres mah script:
#pragma strict
function OnMouseOver () {
OnMouseOver && Input.GetButtonDown("fire1"))
Application.LoadLevel ("level");
{
renderer.material.color = Color.gray;
}
}
whats wrong with that script? Huh?
Comment
What is the exact error ?? Can you just copy it from unity and show us ???
Answer by Landern · May 14, 2014 at 05:25 PM
It appears the unityscript is mal-formed, did you mean:
#pragma strict
function OnMouseOver () {
if(Input.GetButtonDown("fire1")) {
Application.LoadLevel ("level");
renderer.material.color = Color.gray;
}
}