Esempio n. 1
0
    void Start()
    {
        GoVoxel       = _goVoxel;
        MatBlock      = _matBlock;
        MatConnection = _matConnection;
        GoTarget      = _goTarget;
        Size          = _size;
        VoxelSize     = _voxelSize;
        MinCon        = _minCon;

        Grid = new Grid3D(Size);

        var pattern = new PatternA();

        //startBlock = new Block(pattern, new Vector3Int(Size.x / 2, 1, Size.y / 2), new Vector3Int(0, 180, 0), _grid);

        //_grid.AddBlockToGrid(startBlock);
        Grid.IniPathFindingStrucutralAnalysis();

        //StartCoroutine(NextBlockOverTime()); //To generate blocks over time
    }