public override void Awake(int maxNumberOfNodes) { base.Awake(maxNumberOfNodes); m_openNodes = new BinaryHeap<Node>(); m_openNodes.Capacity = maxNumberOfNodes; m_nodePool = new Pool<Node>(maxNumberOfNodes); m_expandedNodes = new Dictionary<int, Pool<Node>.Node>(maxNumberOfNodes); m_solution = new LinkedList<Node>(); m_reachedGoalNodeSuccessCondition = new ReachedGoalNode_SuccessCondition(); }
public override void Awake(int maxNumberOfNodes) { base.Awake(maxNumberOfNodes); m_openNodes = new BinaryHeap <Node>(); m_openNodes.Capacity = maxNumberOfNodes; m_nodePool = new Pool <Node>(maxNumberOfNodes); m_expandedNodes = new Dictionary <int, Pool <Node> .Node>(maxNumberOfNodes); m_solution = new LinkedList <Node>(); m_reachedGoalNodeSuccessCondition = new ReachedGoalNode_SuccessCondition(); }