Esempio n. 1
0
    public void RemoveChunk(Chunk Chunk)
    {
        lock (Chunks){
            if (Chunks.ContainsKey(Chunk.Position))
            {
                Chunks.Remove(Chunk.Position);
            }

            _meshQueue.Remove(Chunk);
            _generationQueue.Remove(Chunk);
        }
        Chunk.Dispose();
    }
Esempio n. 2
0
    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();
    }