#pragma strict

//THIS SCRIPT CREATES THE GUI BUTTON OF THE FIRST SCENE - THE PLAYER CHOOSES THE EASY OR DIFFICULT LEVEL

static var levelflag: int=0;

function OnGUI () {
	// Make a background box
	GUI.Box (Rect (160,160,200,100), "Choose scene");

	// Make the first button. If it is pressed, the levelflag stays the same
	if (GUI.Button (Rect (170,190,175,20), "Easy")) 
		Application.LoadLevel ("GameScene");
	

	// Make the second button. If it is pressed, the levelflag will be 1
	if (GUI.Button (Rect (170,230,175,20), "Difficult"))
	{
		levelflag=1;
		Application.LoadLevel ("GameScene");
	}
}

