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; }
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); }