示例#1
0
        public void Push(VoxelVolume volume)
        {
            volume.SetActive(false);

            if (_hasVolumesParent)
            {
                volume.SetParent(_volumesParent);
            }

            _chunks.Push(volume);
        }
示例#2
0
        public VoxelVolume[] Pull(int chunksCount)
        {
            var result = new VoxelVolume[chunksCount];

            for (var i = 0; i < chunksCount; i++)
            {
                result[i] = Pull();
            }

            return(result);
        }