Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Start () {
- width = Screen.width;
- height = Screen.height;
- windowRect = new Rect(0, 0, width, height);
- }
- void DoWindow0(int windowID) {
- stringToEdit = GUILayout.TextField (stringToEdit, 25, GUILayout.Height(height/4));
- if (GUILayout.Button ("Submit Score", GUILayout.Height(height/4))) {
- StartCoroutine(senddata());
- doWindow0 = false;
- }
- }
- void OnGUI() {
- if (doWindow0)
- GUI.Window(0, windowRect, DoWindow0, "");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement