public void Destroy() { PauseThreads = true; ExitThreads = true; GeneratorThread.Join(); RebuildThread.Join(); WaterUpdateThread.Join(); //ChunkData.ChunkMap.Clear(); }
public void Destroy() { PauseThreads = true; ExitThreads = true; RebuildEvent.Set(); RebuildThread.Join(); WaterUpdateThread.Join(); ChunkUpdateThread.Join(); foreach (var item in ChunkData.ChunkMap) { item.Destroy(); } }