private void TerrainLoadedHandler(float[,] terrain, long bytesRead, long totalBytes) { if (m_terrain != null) { float[] heightmap = Flatten <float>(terrain); m_terrain.SetHeightmap(heightmap); m_log.Debug("Loaded terrain"); } else { m_log.Debug("Skipped terrain, no ITerrain loaded"); } PrintProgress(bytesRead, totalBytes); }