I'm not sure if this is the best solution or an optimal one but I would try to do this:
1. Create a class that holds Question text, A, B, C, D choices, the true answer
2. Create a list of that class and pull all questions to the list.
3. Select random list item(Random.Range would work just fine)
4. After the question is answered, tell the player if it's being answered corretly and copy that list item to another list so you can store and reach already asked questions maybe with the answer given by player too, or just remove the list item.
That's pretty much it for me I think.
↧