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

added onDestroy

parent 9bb76b09
No related branches found
No related tags found
2 merge requests!76Juliuses nye super branch,!67maybe fixed spawning of enemies
......@@ -16,6 +16,8 @@ namespace Bigsock
private CinemachineConfiner2D cameraMap;
Vector3 offset = new Vector3(0, 0, -10);
int i = 0;
void Start()
{
......@@ -31,5 +33,12 @@ namespace Bigsock
i++;
}
}
private void OnDestroy()
{
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