private void ShowQuestion() { RemoveAnswerButton(); QuestionData questionData = questionPool[questionIndex]; questionText.text = questionData.questionText; for (int i = 0; i < questionData.answer.Length; i++) { GameObject answerButtonGameObject = answerButtonObjectPool.GetObject(); answerButtonGameObject.transform.SetParent(answerButtonParent); answerbuttonGameObjects.Add(answerButtonGameObject); AnswerButton answerButton = answerButtonGameObject.GetComponent <AnswerButton>(); answerButton.AnswerSetup(questionData.answer[i]); } }