private void AcceptQuest() { Debug.Log("Quest Accepted" + ": " + questObject.quest.name); player.player_Quest.AddQuest(questObject.quest); questIsGiven = true; questUI.HideAcptDecButtons(); questUI.ShowCheckBox(); CloseQuestWindow(); }
private void OpenCompletedQuestWindow() { questUI = FindObjectOfType <UI_Manager>().GetQuestUI().GetComponent <QuestUI>(); questUI.HideAcptDecButtons(); questUI.ShowRewardButton(); questUI.ShowCheckBox(); questUI.ShowUICloseButton(); questUI.transform.Find("CollectRewardButton").GetComponentInChildren <Button>().onClick.AddListener(CollectReward); FindObjectOfType <UI_QuestManager>().SetQuest(questObject.quest, portrait); FindObjectOfType <UI_Manager>().OpenQuestUI(); }