var isQuitButton = false;
function OnMouseEnter()
{
renderer.material.color = Color.green;
}
function OnMouseExit()
{
renderer.material.color = Color.white;
}
function OnMouseUP
(
//are we dealing with quit button?
if( isQuitButton );
{
//quit game
Application.Quit();
}
else
{
//load level
Application.LevelLoad(1);
}
)
It says there should be an EOF on the else line. Why I haven't left any brackets open to my knowledge.
And on the if( isQuitButton ) I get an unexpected token: if (BCE0043) Does anyone know why?
↧