void GetAgentsInChildrenAll(List <Agent> buffer) { if (TopRight.HasChildren()) { TopRight.GetAgentsInChildrenAll(buffer); } else { buffer.AddRange(TopRight.Agents); } if (TopLeft.HasChildren()) { TopLeft.GetAgentsInChildrenAll(buffer); } else { buffer.AddRange(TopLeft.Agents); } if (BottomRight.HasChildren()) { BottomRight.GetAgentsInChildrenAll(buffer); } else { buffer.AddRange(BottomRight.Agents); } if (BottomLeft.HasChildren()) { BottomLeft.GetAgentsInChildrenAll(buffer); } else { buffer.AddRange(BottomLeft.Agents); } }