Objective: create a color changing cube using switch statements
I must admit, I do like comparison values for numbers but I can see how this can be functional, especially with strings.
I grabbed the renderer component of the cube first. Do that once on start to lock that in.
Just a simple switch using ints. I set the colors to change with each press of Q based on the case value of color. When it goes outside 4, it switches to 0 and turns red. Then any space after that takes it back to case 1 and the loop resumes!