protected void PerformTransition(MachineTransition transition) { if (FState > 0 && OnTransition != null) { OnTransition(this, new TransitionEventArgs(transition)); } State = transition.To; }
public TransitionEventArgs(MachineTransition transition) : base() { Transition = transition; }
public void AddTransition(MachineTransition transition) { Transitions[FindState(transition.From)].Add(transition); }