// This is called by 'start quest' on the main menu public void SelectQuest() { // Find any content packs at the location cd = new ContentData(gameType.DataDirectory()); // Check if we found anything if (cd.GetPacks().Count == 0) { Debug.Log("Error: Failed to find any content packs, please check that you have them present in: " + gameType.DataDirectory() + System.Environment.NewLine); Application.Quit(); } foreach (string pack in cd.GetEnabledPacks()) { cd.LoadContent(pack); } // Get a list of available quests Dictionary <string, QuestLoader.Quest> ql = QuestLoader.GetQuests(); // Pull up the quest selection page new QuestSelection(ql); }