Level-Selector lädt wieder die korrekten Level
This commit is contained in:
parent
3da17aab48
commit
f0f6bb05e1
@ -9,27 +9,22 @@ public class MainMenu : MonoBehaviour
|
|||||||
{
|
{
|
||||||
private int selectedLevel;
|
private int selectedLevel;
|
||||||
|
|
||||||
private Dictionary<int, int> levels;
|
private Dictionary<int, int> levels = new Dictionary<int, int>()
|
||||||
|
|
||||||
private void Start()
|
|
||||||
{
|
{
|
||||||
levels = new Dictionary<int, int>()
|
{1, 1},
|
||||||
{// das hier geht nicht, die build indexes müssen manuell eingetragen werden
|
{2, 2},
|
||||||
{1, SceneManager.GetSceneByPath("2PlatzhalterTutorial").buildIndex},
|
{3, 3},
|
||||||
{2, SceneManager.GetSceneByPath("3MeowlinTalk").buildIndex},
|
{4, 4},
|
||||||
{3, SceneManager.GetSceneByPath("4DScene").buildIndex},
|
{5, 7},
|
||||||
{4, SceneManager.GetSceneByPath("5.0TutorialDimShift").buildIndex},
|
{6, 10},
|
||||||
{5, SceneManager.GetSceneByPath("6.0Luna").buildIndex},
|
{7, 11},
|
||||||
{6, SceneManager.GetSceneByPath("7Prototype").buildIndex},
|
{8, 12},
|
||||||
{7, SceneManager.GetSceneByPath("8Francois").buildIndex},
|
{9, 13},
|
||||||
{8, SceneManager.GetSceneByPath("9Catman1").buildIndex},
|
{10, 14},
|
||||||
{9, SceneManager.GetSceneByPath("10Conflict").buildIndex},
|
{11, 15},
|
||||||
{10, SceneManager.GetSceneByPath("11Catman2").buildIndex},
|
{12, 16},
|
||||||
{11, SceneManager.GetSceneByPath("14Level_Vanessa").buildIndex},
|
{13, 21}
|
||||||
{12, SceneManager.GetSceneByPath("15.0BossVorher").buildIndex},
|
};
|
||||||
{13, SceneManager.GetSceneByPath("Credits").buildIndex}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
public void startGame()
|
public void startGame()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user