public void RemoveChunk(Chunk Chunk) { lock (Chunks){ if (Chunks.ContainsKey(Chunk.Position)) { Chunks.Remove(Chunk.Position); } _meshQueue.Remove(Chunk); _generationQueue.Remove(Chunk); } Chunk.Dispose(); }
public void RemoveChunk(Chunk Chunk) { //Debug.Log("Removing chunk"); lock (Chunks){ if (Chunks.ContainsKey(Chunk.Position)) { Chunks.Remove(Chunk.Position); } _meshQueue.Remove(Chunk); _generationQueue.Remove(Chunk); } Chunk.Dispose(); }