Animation: Support sub-state machines