void Reroll() { int index = 0; foreach (GameObject characters in character) { Destroy(character[index]); index++; } WordListController.ReadRandom(); DrawChars(); }
void Start() { Character = Resources.Load <GameObject>("Character"); CharacterAtlas = Resources.LoadAll <Sprite>("Letters"); originalScale = Character.GetComponent <RectTransform>().localScale; originalXFactor = Character.GetComponent <RectTransform>().sizeDelta.x; originalYFactor = Character.GetComponent <RectTransform>().sizeDelta.y; //Load the Selected Wordlist and Read a Random Word WordListController.LoadList(); WordListController.ReadRandom(); //Begin to Lay out the "Board" DrawChars(); }
void Reroll() { int index = 0; foreach (GameObject characters in character) { Destroy(character[index]); index++; } correctGuesses = 0; Letter.Guesses = new List <char>(); WordListController.ReadRandom(); DrawChars(); }