public MapSample() { m_Map = new TileSample[WIDTH][]; for (var x = 0; x < m_Map.Length; x++) { m_Map[x] = new TileSample[HEIGHT]; for (var y = 0; y < m_Map[x].Length; y++) { m_Map[x][y] = new TileSample(); } } }