void OnDrawGizmos()
{
if (map == null) return;
for (var x = 0; x < Width; x++)
for (var y = 0; y < Height; y++)
{
Gizmos.color = (map[x, y] == 1) ? Color.black : Color.white;
var pos = new Vector3(-Width / 2 + x + .5f, 0, -Height / 2 + y + .5f);
Gizmos.DrawCube(pos, Vector3.one);
}
}