Advertisement
LittleAngel

Reordered

Apr 12th, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. public Texture[] TextureArray;
  2. int n = 0;
  3.  
  4. void OnGUI()
  5. {
  6. if (GUI.Button(new Rect(0,0,100,100), TextureArray[n]))
  7. {
  8. n++;
  9. if (n>=TextureArray.Length)
  10. {
  11. n = 0;
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement