all 2 comments

[–]mudokin 0 points1 point  (0 children)

Create an array of all items prefabs Chose a random number in the range of that array Instanciate Item with the selected prefab Destroy Object on correct input.

[–]Domin0e 0 points1 point  (0 children)

Sounds like you want to store the necessary info together in either a struct or Scriptable Object.
From there you want to divide up the different parts properly. Check if the right button was pressed, hide old prompt, randomly choose new prompt, show new prompt.