- Object - The object we want to check if the state has changed.
- Changes to - If the object gets to this state, the actions will be triggered.
Rectangle changes to State 1, the actions under โThenโ will be triggered.
And if Rectangle changes back to any other state, the actions under โElseโ will be triggered.
In this simple example, there is a State Change Event on the Pink Cube which triggers a transition on it when the Purple Cube arrives at State 1.

