コード例 #1
0
    void RunSingleTest()
    {
        IBlockSource            source    = new TestSource();
        MarchingPointDictionary blockData = new MarchingPointDictionary((64, 64, 64));

        source.generateAll(blockData);

        ChunkRenderer chunk = Instantiate(
            chunkPrefab,
            Vector3.zero,
            Quaternion.identity
            ).GetComponent <ChunkRenderer>();

        chunk.blockData = blockData;
    }