public NodePool(int maxNodes) { this.maxNodes = maxNodes; nodes = new List<NavNode>(maxNodes); nodeDict = new Dictionary<NavPolyId, NavNode>(); }