From 758cc2b8c4b06fef3b4126e5d5e7d07f3e618841 Mon Sep 17 00:00:00 2001 From: Robin Ruud Kristensen <robin1998@hotmail.no> Date: Thu, 10 Nov 2022 23:38:54 +0100 Subject: [PATCH] added clear map functions --- MrBigsock/Assets/Code/Map/NeighbourMapGenerator.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MrBigsock/Assets/Code/Map/NeighbourMapGenerator.cs b/MrBigsock/Assets/Code/Map/NeighbourMapGenerator.cs index 23e3a32c..4dd6c90b 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 -- GitLab