public void draw(IMapRenderer mapRenderer)
 {
     Color[] pix;
     pix = mapRenderer.getColors();
     mapTexture.SetPixels(pix);
     mapTexture.Apply();
 }
Exemple #2
0
    public void draw(IMapRenderer mapRenderer)
    {
        MeshRenderer mr = GetComponent <MeshRenderer>();

        mr.enabled = true;
        Color[] pix;
        pix = mapRenderer.getColors();
        mapTexture.SetPixels(pix);
        mapTexture.Apply();
    }