public void AddQuest(int id, QuestBar questBar) { //temporary bug fix //rossz helyen jön létre a Quest Helper TODO Fix _questBarList.Clear(); _questBarList.Add(id, questBar); }
public void GetQuestYes() { GameObject obj = Instantiate(m_QuestBar); obj.transform.SetParent(m_QuestBoxObj); QuestBar questBar = obj.GetComponent <QuestBar>(); questBar.Init(this, m_nQuestIndex, out m_GetQuest); m_DicSaveQuest.Add(m_nQuestIndex, obj); m_CancleQuestYes.onClick.AddListener(delegate { questBar.CancleQuestYes(); }); m_CancleQuestNo.onClick.AddListener(delegate { questBar.GoQuesting(); }); m_ContentScreen.SetActive(false); m_DicQuestInterface.Add(m_nQuestIndex, questBar); }