Exemplo n.º 1
0
    public void Setup(GameObject currentQuest, QuestScrollList currentScrollList)
    {
        quest = currentQuest;
        QuestController questController = quest.GetComponent <QuestController>();

        goldLabel.text     = "Gold: " + questController.gold;
        distanceLabel.text = "Distance: ";
        nameLabel.text     = quest.gameObject.name;
        scrollList         = currentScrollList;
    }
Exemplo n.º 2
0
    public void SelectQuest(GameObject quest)
    {
        QuestScrollList questScrollList = GetComponent <QuestScrollList>();

        questScrollList.target         = quest;
        otherInventory.otherInventory  = questScrollList;
        questScrollList.otherInventory = otherInventory;
        questScrollList.enabled        = true;
        backButton.SetActive(true);
        backButton.GetComponent <InventoryBackButton>().Setup(questScrollList, this);
        this.enabled = false;
    }