State may contain many transitions. Condition lambda helps to choose correct one. But is easy to make a mistake and have multiple transitions for current event, which is wrong.
Make a State to choose next state may be a better solution. As it should be simpler to make a decision where to go in one place, rather than in may separated lambdas.
State may contain many transitions. Condition lambda helps to choose correct one. But is easy to make a mistake and have multiple transitions for current event, which is wrong.
Make a State to choose next state may be a better solution. As it should be simpler to make a decision where to go in one place, rather than in may separated lambdas.