Skip to content

Commit 5f345e0

Browse files
Update README.md
1 parent b4740ab commit 5f345e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Example:
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);

0 commit comments

Comments
 (0)