Exemple #1
0
    private void AcceptQuest()
    {
        Debug.Log("Quest Accepted" + ": " + questObject.quest.name);
        player.player_Quest.AddQuest(questObject.quest);

        questIsGiven = true;
        questUI.HideAcptDecButtons();
        questUI.ShowCheckBox();

        CloseQuestWindow();
    }
Exemple #2
0
    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();
    }