public StateNode FindState(StateAsset asset) => _stateNodes.FirstOrDefault(s => s.Asset == asset);
Esempio n. 2
0
 /// <summary>
 /// Checks if the transition is related to a given state.
 /// </summary>
 /// <param name="state">the state to check against</param>
 /// <returns>true if the state is involved in the transition, false otherwise.</returns>
 public bool Involves(StateAsset state) => _sourceState == state || _destinationState == state;