public StateMachine(IStateSupplier <T> supplier) { if (supplier == null) { throw new System.ArgumentNullException("supplier"); } _states = supplier; }
public StackedStateMachine(IStateSupplier <T> supplier) : base(supplier) { _stack = new GenericStateStack <T>(this); }