Exemplo n.º 1
0
 public void Start(MonoBehaviour parentMono,
                   BiLookup <int, B45ChunkData> chunkToComputeList,
                   OnComputeComplete setChunkMeshFunc, cpuBlock45 _b45proc,
                   bool bAsyncMode = false)
 {
     b45proc           = _b45proc;
     _mono             = parentMono;
     _setChunkMesh     = setChunkMeshFunc;
     _chunkToBuildList = chunkToComputeList;
     _bAsyncBuildMode  = bAsyncMode;
     _mono.StartCoroutine(rebuildChunksInList());
     //_setMeshFuncStack = new Stack<OnComputeComplete>();
     //_buildListStack = new Stack<BiLookup<int, B45ChunkData>>();
     b45proc.init();
 }
Exemplo n.º 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);
    }