How to manage multi-scenes project

Hi,
I have menu, and lot’s of different scenes which can be acces only from menu( let’s call them Primary Scenes).
Each Primary Scene has it’s own set of Secondary Scenes, which can be acces only from this Primary Scene.

So when There’s a PrimaryScene with set of 2 secondary scenes, example round between scenes can look like:

Menu →
PS 1 →
SS 1 →
SS 2 →
PS1 →
Menu

How should I store information about avaliable scenes ?
What’s best way to add scenes to the build ?
How should I swithc between them ? ( using just string names, or maybe some multidimensional array of scenes ?)

Any ideas will be will be much appreciated,
Thanks !

To add scenes to the build then do the following in the editor:

  1. Open the scene you wish to add.
  2. Goto File > Build Settings…
  3. Click the “Add Current” button to add the scene to the build

To switch between scenes you can use the following line of code:

Application.LoadLevel("Place your scene name here");

Thanks, I know that.
I’m looking for a way how can I do it in the larger scale, through code.
For example i have 50 PrimaryScenes, with few Secondary Scenes each- I don’t think that adding each of them manually to the Build Settings is the most efficient way.