public WhenGettingNextQuestToUnlock() { Repository = new QuestRepository(); Player = new Player(); Sut = new QuestLocation(Repository); }
/// <summary>Method used to activate the quest prompt screen</summary> /// <param name="questgiver_">Reference to the QuestLocation component that holds the quest info</param> private void TalkToQuestgiver(QuestLocation questgiver_) { //Activating the UI and the background UI blocker this.cityUI.cityPanelObject.SetActive(false); this.dungeonUI.dungeonPanelObject.SetActive(false); this.holyShrineUI.holyShrinePanelObject.SetActive(false); this.cursedShrineUI.cursedShrinePanelObject.SetActive(false); this.ambushUI.ambushPanelObject.SetActive(false); this.lootUI.lootPanelObject.SetActive(false); this.questUI.questPanelObject.SetActive(true); this.uiBlocker.SetActive(true); this.questUI.questNameText.text = questgiver_.offeredQuest.questName; this.questUI.descriptionText.text = questgiver_.offeredQuest.questDescription; }