private void TriggerQueued() { while (_transitionCommandQueue.Count > 0) { SetInternalState(PlainStateMachineInternalState.EvaluatingTransitions); TransitionCommand transition = _transitionCommandQueue.Dequeue(); TState stateTo = default; try { if (TryGetStateTo(transition.trigger, out stateTo)) { Transition(transition.trigger, stateTo); } } catch (MultipleValidTransitionsFromSameStateException) { _transitionCommandQueue.Clear(); SetInternalState(PlainStateMachineInternalState.Idle); throw; } catch { throw; } } }
private void OnDeleteTapped() { TransitionCommand.Execute(null); }