This recipe shows how to use Sub-State Machines. This concept helps to organize the flow in Animator Controller.