public override BaseGrid Clone() { DynamicGrid tNewGrid = new DynamicGrid(); foreach (KeyValuePair <LPoint, Node> keyValue in m_nodes) { tNewGrid.SetWalkableAt(keyValue.Key.x, keyValue.Key.y, true); } return(tNewGrid); }