Hi guys,
I am working on my Main Menu for my game, And I am making a script to Start a new game and quit game. But instead of making 2 script I have decided to put it all in one.
var newGame : boolean;
function OnMouseUp(){
if(newGame)
newGame=true;
Application.LoadLevel("Level_1_Awake");
}else{
Application.Quit();
}
I have not done this before thus I can’t get it to work.
I want it to be a “Boolean” which I believe would make it easier, So if I tick a box then the game would know whether to Quit the application or Load level 1.
sorry about the script being messy.
Thank you in advance!
-Izzy