diff --git a/MrBigsock/Assets/Code/Map/NeighbourMapGenerator.cs b/MrBigsock/Assets/Code/Map/NeighbourMapGenerator.cs index 23e3a32c8bd96c71868207094619988c0d4e8a7e..4dd6c90bdac929e4453f94ccc989b3e1aaf61758 100644 --- a/MrBigsock/Assets/Code/Map/NeighbourMapGenerator.cs +++ b/MrBigsock/Assets/Code/Map/NeighbourMapGenerator.cs @@ -14,6 +14,7 @@ namespace Bigsock public override void RunProceduralGeneration() { + roomList.Clear(); for (int i = 0; i <= RoomCount - 1; i++) { @@ -41,5 +42,10 @@ namespace Bigsock { return roomList.Count; } + + public static void ClearRoomList() + { + roomList.Clear(); + } } } \ No newline at end of file