Ejemplo n.º 1
0
        public LogicTreeStrategy(IActor actor, LogicStateTree stateTree)
        {
            Actor         = actor;
            _stateTree    = stateTree;
            _strategyData = new LogicTreeStrategyData();

            CurrentState = _stateTree.StartState;
        }
Ejemplo n.º 2
0
        public LogicTreeStrategy(IActor actor, LogicStateTree stateTree)
        {
            Actor      = actor ?? throw new ArgumentNullException(nameof(actor));
            _stateTree = stateTree ?? throw new ArgumentNullException(nameof(stateTree));

            _strategyData = new LogicTreeStrategyData();

            CurrentState = _stateTree.StartState;
        }