Unity Simon: A Memory Game in Unity Chapter 3
CHAPTER 3 OF 3

Game logic

Wire up the core game loop: maintain a List of lights, show the sequence with a Coroutine, and accept user input. Wrong input returns to the main menu; correct input grows the sequence indefinitely.