Пример #1
0
    public void QuestionButtonClicked(string tileText, int mappedQuestionButtonIndex)
    {
        Debug.Log("Question button clicked = " + mappedQuestionButtonIndex);

        foreach (GameObject ansBtn in answerButtonGameObjects)
        {
            AnswerButton answerButton = ansBtn.GetComponent <AnswerButton> ();

            if (answerButton.answerText.text == "")
            {
                answerButton.Setup(tileText);
                answerButton.SetMappedQuestionButtonIndex(mappedQuestionButtonIndex);

                checkIfAnswerIsComplete();
                break;
            }
        }
    }