Is there a way to change the state of the same object multiple times, simply by clicking on the object? For example, I want to change a shape from red to blue to green by clicking on the shape. This should be continuous. So as long as I keep clicking the colors will change in order.
I am guessing I have to use variables?