public BehaviourBindingChain <TStates, TActions, TContext> BindBehaviourToState(TStates state, StateBehaviour <TStates, TActions, TContext> behaviour) { return(_stateMachine.BindBehaviourToState(state, behaviour)); }
public BehaviourBindingChain <TStates, TActions, TContext> BindBehaviourToState(TStates state, StateBehaviour <TStates, TActions, TContext> behaviour) { _behaviourStates.Add(state, behaviour); behaviour.Init(this, _context); return(new BehaviourBindingChain <TStates, TActions, TContext>(this)); }