AquaSphere.WebPlayerDebugManager.OnGUI C# (CSharp) Метод

OnGUI() приватный Метод

private OnGUI ( ) : void
Результат void
		void OnGUI() {

			if (Epigene.GAME.GameManager.Instance.debugMode == false)
				return;

				gameObject.SetActive (true);
			// Make the toggle button.
			if (GUI.Button (new Rect (20, 15, 80, 20), labelShowHide)) {
				if (showDebug == false) {
					showDebug = true;
					labelShowHide = "hide";
				} else {
					showDebug = false;
					labelShowHide = "show";
				}
			}

			if (showDebug == true) {
				// Make a background box
				GUI.Box (new Rect (10, 10, 320, 250), "");

				// Make the clear button.
				if (GUI.Button (new Rect (105, 15, 80, 20), "clear")) {
					longString = "";
					debugOutput.Clear();
					//addOutput ("Version build: " + RetrieveLinkerTimestamp ().ToString (), 0);
				}
				
				// Make the Info only button.
				if (GUI.Button (new Rect (245, 15, 80, 20), "All")) {
					allButton();
				}
				
				// Make the Info only button.
				if (GUI.Button (new Rect (245, 40, 80, 20), "Info")) {
					infoButton();
				}
				
				// Make the GameTimes only button.
				if (GUI.Button (new Rect (245, 65, 80, 20), "GameTimes")) {
					gametimesButton();
				}
				
				// Make the GameTimes only button.
				if (GUI.Button (new Rect (245, 90, 80, 20), "Warning")) {
					warningButton();
				}
				
				// Make the GameTimes only button.
				if (GUI.Button (new Rect (245, 115, 80, 20), "Error")) {
					errorButton();
				}
				
				// Make the GameTimes only button.
				if (GUI.Button (new Rect (245, 140, 80, 20), "Exception")) {
					exceptionButton();
				}

				// Make the Build Environment button.
				if (GUI.Button (new Rect (30, 200, 105, 20), "Build Start")) {
					buildEnvironment();
				}


				// Make the Buy Shrimp button.
				numberOfShrimps = int.Parse(GUI.TextField (new Rect (30, 230, 105, 20), numberOfShrimps.ToString()));

				if (GUI.Button (new Rect (140, 230, 100, 20), "Buy Shrimp")) {
					BuyShrimp();
				}
				/*
				// Make the GoToEndScreen button.
				if (GUI.Button (new Rect (95, 200, 70, 20), title)) {
					if (title == "Win")
					{
						toEndScreen("GameSuccess");
						title = "Lose";
					}
					else if (title == "Lose")
					{
						toEndScreen("GameOver");
						title = "Win";
					}
				}

				// Make the SendHighscore button.
				if (GUI.Button (new Rect (95, 230, 70, 20), "Highscore")) {
					sendHighscore(highscore);
				}

*/
				scrollPosition = GUI.BeginScrollView (
					new Rect (20, 40, 215, 150), 
					scrollPosition, new Rect (10, 20, 190, 1550));
				GUI.Box (new Rect (5, 15, 205, 1550), "");

				if (updateGUI == true) {
					switch (activeButton) {
						case "All":
							allButton();
							break;
						case "Info":
							infoButton();
							break;
						case "GameTimes":
							gametimesButton();
							break;
						case "Warning":
							warningButton();
							break;
						case "Error":
							errorButton();
							break;
						case "Exception":
							exceptionButton();
							break;
						default:
							break;
					}
					updateGUI = false;
				}
				GUI.Label (new Rect (10, 20, 205, 1550), longString);

				GUI.EndScrollView ();
			}
		}
	}