Gets state of given type. The type of the state.
()
| 45 | /// </summary> |
| 46 | /// <typeparam name="TStateType">The type of the state.</typeparam> |
| 47 | public State GetState<TStateType>() |
| 48 | { |
| 49 | return states.Find(x => x.GetType() == typeof(TStateType)); |
| 50 | } |
| 51 | |
| 52 | /// <summary> |
| 53 | /// Goes to the state. |