Skip to content

Commit 84d840f

Browse files
committed
2 parents fb27c80 + 5f345e0 commit 84d840f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 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 transition2 = stateMachine.AddTransition("Transition2", state2, state3);
20+
Transition transition1 = stateMachine.AddTransition("Transition1", state1, state2);
2121

2222
//From state
23-
Transition transition1 = state1.AddTransitionFromThis("Transition1", state2);
23+
Transition transition2 = state2.AddTransitionFromThis("Transition2", state3);
2424

2525
//To state
2626
Transition transition3 = state4.AddTransitionToThis("Transition3", state3);
@@ -31,11 +31,11 @@ Example:
3131
state3.OnExit(Method3);
3232
state4.OnExit(Method4);
3333

34-
//Set start set
34+
//Set start state
3535
state1.SetAsStartState();
3636

3737
//Start work
38-
stateMachine.Start(parametersForStart);
38+
stateMachine.Start();
3939
```
4040
**Example methods**
4141
```C#

0 commit comments

Comments
 (0)