예제 #1
0
    // Use this for initialization
    void Start()
    {
        Chunk         chunk         = new Chunk(Vector3.zero * chunkSize, chunkSize);
        ChunkRenderer chunkRenderer = gameObject.GetComponent <ChunkRenderer>();

        if (drawCombined)
        {
            chunkRenderer.DrawCombined(chunk, chunkSize, gameObject, cubeMaterial);
        }
        else
        {
            chunkRenderer.Draw(chunk, chunkSize, gameObject, cubeMaterial);
        }
    }