Hello,
I am a newbie
I like to have random answers.
So to make it harder for the player so if the question comes he can’t remember if it was the first one or the third.
private void ShowQuestion()
{
RemoveAnswerButtons();
// Get random question from the list.
QuestionData questionData = questionPool[Random.Range(0, questionPool.Count)];
// Remove it from the list, so we can't get it again.
questionPool.Remove(questionData);
questionDisplayText.text = questionData.questionText;
for (int i = 0; i < questionData.answers.Length; i++)
{
GameObject answerButtonGameObject = answerButtonObjectPool.GetObject();
answerButtonGameObjects.Add(answerButtonGameObject);
answerButtonGameObject.transform.SetParent(answerButtonParent);
AnswerButton answerButton = answerButtonGameObject.GetComponent<AnswerButton>();
answerButton.Setup(questionData.answers*);*
timeRemaining = currentRoundData.timeLimitInSeconds;
}
}