public void Push(VoxelVolume volume) { volume.SetActive(false); if (_hasVolumesParent) { volume.SetParent(_volumesParent); } _chunks.Push(volume); }
public VoxelVolume[] Pull(int chunksCount) { var result = new VoxelVolume[chunksCount]; for (var i = 0; i < chunksCount; i++) { result[i] = Pull(); } return(result); }