//================================================== void ShowDialogue(int index) { m_dialogueIndex = index; if (m_dialogues.GetValue(index) != null) { m_panelDialogue.ShowDialogue(m_dialogues[index]); } }
//=========================================================== //클리어 퀘스트 void ClearQuest() { //퀘스트 중이었으면 퀘완 if (QuestManager.instance.IsThisOnBoardQuest(1)) { QuestManager.instance.CompleteQuest(1); } //마을로 복귀 PanelDialogue panelDialogue = GameObject.Find("Canvas").transform.Find("PanelDialogue").GetComponent <PanelDialogue>(); panelDialogue.ShowDialogue("...거대 늑대 사냥에 성공했다"); panelDialogue.buttonAction += () => { panelDialogue.ExitDialogue(); UnityEngine.SceneManagement.SceneManager.LoadScene("PreGameScene"); }; }