duck

duck

May 14th, 2010
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function OnGUI()
  2. {
  3.     var alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  4.    
  5.     for (var letterNum == 0; letterNum < alphabet.Length; letterNum++) {
  6.         var thisLetter = alphabet[letterNum].ToString();
  7.         var buttonX = 100 + (letterNum * 40);
  8.         if(GUI.Button(Rect (buttonX,225,50,50), thisLetter, Circle)){
  9.             // the test here!
  10.         }
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment