Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. GUI.Box(new Rect(Screen.width/2-251,49,502,402),"");
  2. scrollPosition = GUI.BeginScrollView(new Rect(Screen.width/2-250,50,500,400),scrollPosition,new Rect(Screen.width/2+200,0,50,400));
  3. string[] ScoresArray = vk.GetComponent<WebData>().GlobalScores.Split(new char[] { '#' });
  4. for(int i = 0; i < ScoresArray.Length; i++)
  5. {
  6. string[] ScoresEntry = ScoresArray[i].Split(new char[] { '*' });
  7. GUILayout.BeginHorizontal();   
  8. //GUILayout.Button(avatarPicture, GUILayout.Width(50));
  9. GUILayout.Label(ScoresEntry[1], GUILayout.Width(250));
  10. GUILayout.Button(ScoresEntry[3], GUILayout.Width(150));
  11. GUILayout.EndHorizontal();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement