Ejemplo n.º 1
0
    private void ShowAnswer()
    {
        RemoveAnswerButtons();

        for (int i = 0; i < answerWord.Length; i++)
        {
            GameObject answerButtonGameObject = answerButtonObjectPool.GetObject();

            answerButtonGameObjects.Add(answerButtonGameObject);
            answerButtonGameObject.transform.SetParent(answerButtonParent);

            AnswerButton answerButton = answerButtonGameObject.GetComponent <AnswerButton> ();
            answerButton.setButtonIndex(i);
            answerButton.Setup("");
        }
    }