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

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

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

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

            return(result);
        }