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?
↧