Ejemplo n.º 1
0
    public void AddActiveQuest(Quest newQuest)
    {
        GameObject questDetailInstance = Instantiate(questDetailPrefab);

        questDetailInstance.transform.SetParent(scrollViewContent.transform);
        QuestDetail instance = questDetailInstance.GetComponent <QuestDetail>();

        instance.DisplayQuest(newQuest);
        questDetailInstances.Add(instance);
    }
Ejemplo n.º 2
0
    public void Display(NPC npc)
    {
        gameObject.SetActive(true);

        this.npc   = npc;
        this.quest = npc.GetQuest();
        if (CanDisplayQuest(npc))
        {
            questDetail.DisplayQuest(this.quest);
            EnableButtons();
        }
        else
        {
            questDetail.DisplayEmptyQuest(npc);
            DisableButtons();
        }
    }
Ejemplo n.º 3
0
 public void Display(Quest completedQuest)
 {
     gameObject.SetActive(true);
     questDetail.DisplayQuest(completedQuest);
 }