Esempio n. 1
0
        public void ReturnChunkMesh(ChunkMesh chunkMesh)
        {
            if (chunkMesh == null)
            {
                return;
            }
            chunkMesh.ClearName();
            chunkMesh.ClearMeshes();

            lock (padlock) {
                availableChunkMeshes.Push(chunkMesh);
                availableChunkMeshCount++;
            }
        }