示例#1
0
    void Reroll()
    {
        int index = 0;

        foreach (GameObject characters in character)
        {
            Destroy(character[index]);
            index++;
        }

        WordListController.ReadRandom();
        DrawChars();
    }
示例#2
0
    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();
    }
示例#3
0
    void Reroll()
    {
        int index = 0;

        foreach (GameObject characters in character)
        {
            Destroy(character[index]);
            index++;
        }

        correctGuesses = 0;
        Letter.Guesses = new List <char>();

        WordListController.ReadRandom();
        DrawChars();
    }