Generate Random sequence of color sprites
So I'm a very beginner in unity. I'm trying to create a memory game where there are 6 different colors and they will be displayed in a sequence. The first sequence being 3 and then increase by one as they level up. The objective of the game is to guess the correct sequence. I already have 6 buttons placed in my scene. Now the only problem is generating a random sequence of colors, first starting with 3 and display them on the scene. Then wait for the user to respond (click on the color buttons in the same sequence). If they get it right then the next random sequence will be shown (this time 4 colors).
How would I go about doing this? Please help me. Thank you.
What have you tried? Show us your code :)
Break the problem into smaller pieces and solve those. Create the colors you need. Define them in the inspector for example in a public Color[] in a script attached to a GameObject.
Randomly pick the wanted amount of colors from that list to another list and make the "sequence". Create the buttons with said colors and compare the pressed buttons color to the colors in the second list.