void OnGUI() { switch (currentMenu) { case MenuID.MainMenu : //Main Menu is showing if(GUI.Button (new Rect(Screen.width/2 - 100, Screen.height - 375, 200, 100), startImage)) { Application.LoadLevel(level); } if(GUI.Button (new Rect(Screen.width/2 - 100, Screen.height - 275, 200, 100), howImage)) { currentMenu = MenuID.HowToPlay; } break; case MenuID.HowToPlay: GUI.Label (new Rect(15, 0, Screen.width, Screen.height), instructions); if(GUI.Button (new Rect(Screen.width/2 - 100, Screen.height - 150, 200, 100), mainMenuImage)) { currentMenu = MenuID.MainMenu; } break; } }