Hey. If I have an Application.loadlevel, and I want to make it a var, for instance,
var isQuitButton = false;
Var Level ?;
function OnMouseEnter()
{
// To change the mouse over color, change "red" to a different color.
renderer.material.color = Color.red;
}
function OnMouseExit()
{
//To change the normal Color, change "white" to a different color.
renderer.material.color = Color.white;
}
function OnMouseUp()
{
//Is it a quit button?
if( isQuitButton )
{
// Activate Quit.
Application.Quit();
}
else
{
//Load Any Other Level.
Application.LoadLevel ( Level );
}
}
What would I make var level be? like var level transform?