Exemple #1
0
    public TextureCompiler texture; //visual represetaion

    #endregion Fields

    #region Methods

    void Start()
    {
        chunk = new ChunkGenerator (1, 1,chunkSize);
        texture = new TextureCompiler (chunk.buildChunk (),this);
        gameObject.GetComponent<Renderer> ().material.mainTexture = texture.mapTexture;
    }