- Home /
Question by
beckett230 · Aug 10, 2010 at 08:50 PM ·
buttonplayquit
Quit Button And Play Button.
Hello, i can't get the play button work or the quit button to work. I have tryed this script and it comes up with a error can you please tell me whats wrong.
function OnMouseUp()
{
//are we dealing with a Quit Button?
if( IsQuitButton )
{
//quit the game
Application.Quit();
} else
{
{
//load level
Application.LoadLevel(1);
}
}
Comment
im sure if you would include the error that comes up more people could help, also try simply google-ing the error (without contextual stuff(variable names, line numbers, etc))
Also, how did you create the Button? UnityGUI? GUITexture? Something else? Is "IsQuitButton" defined somewhere? How is it set?
Hi, I wondering how you solved it cuse i have the same problem. Thanks :)
hi . i ask if you already solve this problem. Thanks !
Your answer