Color Randomize when object spawn help
Ok so, im making a game that blocks randomly spawn different colors (white or red) and the player has to catch them. I could not figure out how to make it select a one of the two colors when they spawn and i searched. I still could not find it. I really need help figuring this out because without this code the game i was creating is not my original idea. Please help. The game is 2D, the objects spawn but i just can't figure out the colors. I found somethings but they all come back with error codes. The block that falls right now is in the prefab of the block spawner so it is not in the Hierarchy. Thanks
Your answer
Follow this Question
Related Questions
How to generate a random color? 5 Answers
Can no1 help me??? 1 Answer
how can i access list of sprites in my code ?? 0 Answers
Need help with specifics in Random.Range 1 Answer
continuously spawning and causes spawned objects to overlap 0 Answers