public void FillMap()
{
for (var x = 0; x < mapTexture.width; x++) {
for (var y = 0; y < mapTexture.height; y++) {
mapTexture.SetPixel(x, y, this.colorForTile (roomManager.tileMap [x, y]));
}
}
mapTexture.Apply();
this.mapCover.GetComponent<Image> ().sprite = Sprite.Create(this.mapTexture, new Rect(0, 0, this.mapTexture.width, this.mapTexture.height), new Vector2 ());
}