private void QuestAccepted(QuestTracker quest) { QuestUI questUI = Instantiate(questUIprefab, inProgressQuestContainer); questUI.SetQuest(quest); if (inProgressQuestUIList.Count == 0) { inProgressQuestContainer.gameObject.SetActive(true); QuestUISelected(questUI); } inProgressQuestUIList.Add(questUI); }