コード例 #1
0
    public B45OctreeDataSource(BiLookup <int, B45ChunkData> chunkRebuildList, Block45Building _b45Building)
    {
        _chunkRebuildList = chunkRebuildList;
        _chunks           = new Dictionary <IntVector4, B45ChunkData>();

        bvtRoot = new BlockVectorNode(new IntVector4(0, 0, 0, 1), null, 0);

        b45Building = _b45Building;
    }
コード例 #2
0
    void Awake()
    {
        if (GlobalInstance)
        {
            self = this;
        }
        bBuildColliderAsync = false;
        colliderBuilding    = true;
        b45proc             = new cpuBlock45();
        b45proc.init();

        chunkRebuildList = new BiLookup <int, B45ChunkData>();

        _blockDS = new B45OctreeDataSource(chunkRebuildList, this);
    }