Skip to content
Snippets Groups Projects
Commit 857cc8ed authored by Robin Ruud Kristensen's avatar Robin Ruud Kristensen
Browse files

changed from Destroy() to DestroyImmediate()

parent 123d47f6
No related branches found
No related tags found
1 merge request!79Ruud1
......@@ -60,7 +60,7 @@ namespace Bigsock
roomNr = 0;
foreach(GameObject c in chests)
{
Destroy(c);
DestroyImmediate(c);
}
DestroyImmediate(stair);
chests.Clear();
......@@ -107,8 +107,9 @@ namespace Bigsock
roomNr = 0;
foreach (GameObject c in chests)
{
Destroy(c);
DestroyImmediate(c);
}
DestroyImmediate(stair);
NeighbourMapGenerator.ClearRoomList();
TilemapGenerator.SetRoomIDZero();
TilemapGenerator.resetMaps();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment