public TickStateTransitionTests()
        {
            _tickStateTransitionBlackboard = new TickStateTransitionBlackboard();

            var tickState1 = new TickState1(new TickStateTransition(TickState2.StateName, _tickStateTransitionBlackboard));

            var tickState2 = new TickState2(new TickStateTransition(TickState3.StateName, _tickStateTransitionBlackboard));

            var tickState3 = new TickState3(new TickStateTransition(TickState1.StateName, _tickStateTransitionBlackboard));

            var states = new TickState[]
            {
                tickState1, tickState2, tickState3
            };

            _stateController = new TickStateController(states);
        }
Example #2
0
 public TickStateTransition(string toStateName, TickStateTransitionBlackboard transitionBlackboard)
 {
     _toStateName          = toStateName;
     _transitionBlackboard = transitionBlackboard;
 }