public void downloadMapTexture(NetworkModule nm, float lat, float lon, int zoom) { StartCoroutine(nm.GetTexture(lat, lon, zoom, (texture) => { if (texture != null) { GetComponent <Renderer>().materials[0].mainTexture = texture; } })); }