void OnGUI() { if (GUI.Button(mDrawingAreaRect, new GUIContent("Hide/Show\n DrawingArea", "Hovering over Hide/Show"))) { mDrawingArea.toggleDrawingAreaVisibility(); } if (GUI.Button(mDrawActivityRect, new GUIContent("StartActivity", "Hovering over StartActivity"))) { DrawActivity.getInstance(this, false, true, true, true, true, true, true, true, true, true).startDrawActivity(); } if (Application.platform == RuntimePlatform.Android) { if (Input.GetKey(KeyCode.Escape)) { Application.Quit(); return; } } }