From f0f6bb05e14785f1d7afdf8e8545ee5d3b669534 Mon Sep 17 00:00:00 2001 From: Maximilian Wagner Date: Tue, 27 Jun 2023 16:32:44 +0200 Subject: [PATCH] =?UTF-8?q?Level-Selector=20l=C3=A4dt=20wieder=20die=20kor?= =?UTF-8?q?rekten=20Level?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/AssetsFORELLE/Script/MainMenu.cs | 35 +++++++++++-------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/Assets/AssetsFORELLE/Script/MainMenu.cs b/Assets/AssetsFORELLE/Script/MainMenu.cs index a4d7ddb..ca50340 100644 --- a/Assets/AssetsFORELLE/Script/MainMenu.cs +++ b/Assets/AssetsFORELLE/Script/MainMenu.cs @@ -9,27 +9,22 @@ public class MainMenu : MonoBehaviour { private int selectedLevel; - private Dictionary levels; - - private void Start() + private Dictionary levels = new Dictionary() { - levels = new Dictionary() - {// das hier geht nicht, die build indexes müssen manuell eingetragen werden - {1, SceneManager.GetSceneByPath("2PlatzhalterTutorial").buildIndex}, - {2, SceneManager.GetSceneByPath("3MeowlinTalk").buildIndex}, - {3, SceneManager.GetSceneByPath("4DScene").buildIndex}, - {4, SceneManager.GetSceneByPath("5.0TutorialDimShift").buildIndex}, - {5, SceneManager.GetSceneByPath("6.0Luna").buildIndex}, - {6, SceneManager.GetSceneByPath("7Prototype").buildIndex}, - {7, SceneManager.GetSceneByPath("8Francois").buildIndex}, - {8, SceneManager.GetSceneByPath("9Catman1").buildIndex}, - {9, SceneManager.GetSceneByPath("10Conflict").buildIndex}, - {10, SceneManager.GetSceneByPath("11Catman2").buildIndex}, - {11, SceneManager.GetSceneByPath("14Level_Vanessa").buildIndex}, - {12, SceneManager.GetSceneByPath("15.0BossVorher").buildIndex}, - {13, SceneManager.GetSceneByPath("Credits").buildIndex} - }; - } + {1, 1}, + {2, 2}, + {3, 3}, + {4, 4}, + {5, 7}, + {6, 10}, + {7, 11}, + {8, 12}, + {9, 13}, + {10, 14}, + {11, 15}, + {12, 16}, + {13, 21} + }; public void startGame() {