Beispiel #1
0
 public void SetupNextLevel(TerrainGenerator terrainGen)
 {
     terrainGen.DestroyTerrain();
     m_currentLevelIndex += 1;
     terrainGen.SetNewTerrainLevelAsset(m_levels[m_currentLevelIndex]);
     terrainGen.Activate();
 }