Hi… I need a lot of help over here… when i added the var script it gives me a compile error like this: Assets/Standard Assets/Scripts/Control de texto.js(1,5): BCE0043: Unexpected token: =
my script is
var = isQuitButton = false;
function OnMouseEnter()
{
//Change color
renderer.material.color = Color.red;
}
function OnMouseExit()
{
//Change color
renderer.material.color = Color.white;
}
function OnMouseUp
{
//are we dealing with a quit button? if is quit button = true
if( IsQuitButton )
}
//if its true quit
Application.Quit();
{
else
{
//load level
Application.LoadLevel(1);
}
in the tutorial worked btw but now what happend? NEED HELP
Also… i have another error… in the script editor when i click save nothing happens just… It saves when i open it again but in unity nothing changes… so i have to save as… then save it in the desktop then import it to unity and there we go… need help plz