WATCH VIDEO FIRST Hey guys I am trying to make a title screen that links to the level (1) and it will not work. Also can you explain the error that shows up every time that I press play. Im not totally sure what it is that is wrong. This is the script I’m using:
var isQuitButton = false;
function OnMouseEnter()
{
renderer.material.color = Color.green;
}
function OnMouseExit()
{
renderer.material.color = Color.black;
}
function.OnMouseDown()
{
if(isQuitButton)
{
Application.Quit();
}
else
{
Application.LoadLevel(1);
}
}
Also are there any level changers were you basically have your character run into a collider and it loads a new level. If so can you post the code/instructions on what do do for it. Thank you.