File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 66
77** Structure**
88``` C#
9- StateMachine stateMachine = new StateMachine ();
9+ StateMachine stateMachine = new StateMachine ();
1010
1111 // Add states
1212 State state1 = stateMachine .AddState (" State1" );
@@ -17,10 +17,10 @@ Example:
1717 // Add transitions three ways:
1818
1919 // Standart way
20- Transition transition1 = stateMachine .AddTransition (" Transition1" , state2 , state3 );
20+ Transition transition1 = stateMachine .AddTransition (" Transition1" , state1 , state2 );
2121
2222 // From state
23- Transition transition2 = state1 .AddTransitionFromThis (" Transition2" , state2 );
23+ Transition transition2 = state2 .AddTransitionFromThis (" Transition2" , state3 );
2424
2525 // To state
2626 Transition transition3 = state4 .AddTransitionToThis (" Transition3" , state3 );
You can’t perform that action at this time.
0 commit comments