Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. void Start () {
  2. width = Screen.width;
  3. height = Screen.height;
  4. windowRect = new Rect(0, 0, width, height);
  5.  
  6.  
  7. }
  8. void DoWindow0(int windowID) {
  9. stringToEdit = GUILayout.TextField (stringToEdit, 25, GUILayout.Height(height/4));
  10. if (GUILayout.Button ("Submit Score", GUILayout.Height(height/4))) {
  11. StartCoroutine(senddata());
  12. doWindow0 = false;
  13. }
  14. }
  15. void OnGUI() {
  16. if (doWindow0)
  17. GUI.Window(0, windowRect, DoWindow0, "");
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement