A simple scene showing how different state machines can interact with each other by sending messages.
Each of the 4 traffic lights has a state machine that handles cycling colours when receiving either a "red" or "green" message.
A central state machine cycles the whole intersection between north / south and east / west traffic, sending messages to the state machines of each lamp.