public static MachineEditor <ChildState> BuildStateMachine(this ChildModel model, StateMachine <ChildState> machine) { var builder = MachineEditor <ChildState> .Edit(machine); machine.SetInitialState(ChildState.Ready); BuildReadyState(model, builder); BuildBusyState(model, builder); return(builder); }
public static MachineEditor <DemoState> BuildStateMachine(this DemoModel model, StateMachine <DemoState> machine) { var builder = MachineEditor <DemoState> .Edit(machine); machine.SetInitialState(DemoState.One); BuildStateOne(model, builder); BuildStateTwo(model, builder); BuildStateThree(model, builder); BuildStateFour(model, builder); return(builder); }