public void DungeonChoice(int dungeonid) { try { m_choiceresult = null; ZoneData zoneEntry = DataManager.Instance.GetZone(dungeonid); DialogueChoice[] choices = new DialogueChoice[2]; choices[0] = new DialogueChoice(Text.FormatKey("DLG_CHOICE_YES"), () => { m_choiceresult = true; }); choices[1] = new DialogueChoice(Text.FormatKey("DLG_CHOICE_NO"), () => { m_choiceresult = false; }); m_curchoice = new DungeonEnterDialog(Text.FormatKey("DLG_ASK_ENTER_DUNGEON", zoneEntry.GetColoredName()), dungeonid, false, choices, 0, 1); } catch (Exception e) { DiagManager.Instance.LogInfo(String.Format("ScriptUI.DungeonMenu(): Encountered exception:\n{0}", e.Message)); } }