How to store objects and then call them?

I don’t know whether call is the right expression, but basically I need to store somewhere in memory objects that my player collects and then shoot them out in reverse order (from the last one collected to the first one) by the press of a button.

What is the best method to do something like this?

not sure but you could possibly make use of public GameObject pauseMenuUI; and pauseMenuUI.SetActive(false); pauseMenuUI.SetActive(true);