duck

duck

May 14th, 2010
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Start ()
  2. {
  3.   transform.localPosition = Vector3.zero;
  4.   var i = 0;
  5.  
  6.   Words[0]="ilan";
  7.   Words[1]="king";
  8.   Words[2]="omfg";
  9.  
  10.   SetupNewBoard();
  11.  
  12. }
  13.  
  14. function SetupNewBoard() {
  15.  
  16.   randomWord = Words[Random.Range(0,Words.length)];
  17.   while ( i < randomWord.length){
  18.       n = new GameObject("part");
  19.       n.transform.parent = transform;
  20.       n.transform.localPosition = Vector3(moveRight,0.85,-1.761281);
  21.       //if(i != 0) n.transform.localPosition.x += 0.05;
  22.       //n.transform.parent.position = test;
  23.       revealLetters[i] = n.AddComponent("GUIText");
  24.       n.guiText.text = "_";
  25.       n.guiText.font = _Font_;
  26.       moveRight += 0.1;
  27.       i ++;
  28.  
  29.   }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment