Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Start ()
- {
- transform.localPosition = Vector3.zero;
- var i = 0;
- Words[0]="ilan";
- Words[1]="king";
- Words[2]="omfg";
- SetupNewBoard();
- }
- function SetupNewBoard() {
- randomWord = Words[Random.Range(0,Words.length)];
- while ( i < randomWord.length){
- n = new GameObject("part");
- n.transform.parent = transform;
- n.transform.localPosition = Vector3(moveRight,0.85,-1.761281);
- //if(i != 0) n.transform.localPosition.x += 0.05;
- //n.transform.parent.position = test;
- revealLetters[i] = n.AddComponent("GUIText");
- n.guiText.text = "_";
- n.guiText.font = _Font_;
- moveRight += 0.1;
- i ++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment