private void InitialiseNodeLists(AIAgent agent, AIPlanner planner) { nullNodes = new List <AINode>(); openNodes = new List <AINode>(); closedNodes = new List <AINode>(); currentNode = new AINode(agent, planner); closedNodes.Add(currentNode); foreach (var action in agent.GetActions()) { nullNodes.Add(new AINode(agent, planner, action)); } }