void OnGUI() { TuringMachine tm = GameObject.FindGameObjectWithTag("GameController").GetComponent <MachineGear>().SimulatedMachine(); if (showWait) { try { GUI.Box(new Rect((Screen.width / 2) - 100, (Screen.height / 2) - 30, 200, 60), "Input rejected", warning.box); } catch { } StartCoroutine(InputErrorPopUp()); } if (showInfo) { try { GUI.Box(new Rect(130, 150, Screen.width / 3, Screen.height / 3), tm.GetDescription(), warning.box); } catch { } StartCoroutine(InfoPopUp()); } }