DestroyLevel() public method

Returns the binary switches in the level to the object pool.
public DestroyLevel ( ) : void
return void
 /// <summary>
 /// Spawns the prefab for the blocks of a given level.
 /// </summary>
 /// <returns>The number of good blocks for the given level.</returns>
 /// <param name="level">The level to be spawned.</param>
 public void StartLevel(int level)
 {
     // Spawn the new level. We are subtracting 1 since levels start at 1 but
     // array index starts at 0.
     currentLevel = Mathf.Clamp(level - 1, 0, levels.Length - 1);
     levelObject.DestroyLevel();
     levelObject.SpawnLevel(levels[currentLevel].numDigits);
 }