Essentially what I said in the title. This is my code:
#pragma strict
//@ExecuteInEditMode
var customButton : GUIStyle;
var confirmMenu : GUIStyle;
var SubMenuBox1 : GUIStyle;
var SubMenuBox2 : GUIStyle;
var selGridInt : int = -1;
var selGridInt2 : int = 0;
var selStrings2 : String[] = ["Yes", "No"];
var selStrings1 : String[] = ["Sandbox", "Multiplayer", "Options", "Exit"];
//var MainMenu:GUISkin;
//var Rect2 = RectOffset(0,0,10,10);
//var sliderValue : float = 1.0;
//private var rctOff : RectOffset;
function Start(){
}
//#if UNITY_EDITOR #endif
function OnGUI () {
selGridInt = GUI.SelectionGrid (Rect (Screen.width*0.015625, Screen.height*0.014286, 75, 95), selGridInt, selStrings1, 1, customButton);
if (selGridInt == 0){
Application.LoadLevel("gameDemo");
}
if (selGridInt == 1){
Application.LoadLevel("");
}
if (selGridInt == 2){
//GUI.Box(Rect(Screen.width/2, Screen.height/2, 100, 200, "Are you sure?", confirmMenu));
selGridInt2 = GUI.SelectionGrid (Rect (Screen.width/2, Screen.height/2, 75, 25), selGridInt2, selStrings2, 2, customButton);
if(selGridInt2 == 1){
Application.LoadLevel(Application.loadedLevel);
}
//if(selGridInt2 != 1||0){
//System.Diagnostics.Process.GetCurrentProcess().Kill();
//}
}
}