Esempio n. 1
0
 public void SetCompleted(Quest quest)
 {
     status = QuestElementStatus.Complete;
     Highlighter.enabled    = false;
     QuestStatusIcon.sprite = QuestOverviewUI.GetCompleteIcon();
     HideObjectives();
     ToggleIconActive();
 }
Esempio n. 2
0
 public void SetInProgress(Quest quest)
 {
     status = QuestElementStatus.InProgress;
     Highlighter.enabled    = true;
     QuestStatusIcon.sprite = QuestOverviewUI.GetInProgressIcon();
     ShowObjectives();
     ToggleIconActive();
     UpdateDisplay();
 }
Esempio n. 3
0
        public void SetComplete(QuestObjective objective)
        {
            status            = QuestElementStatus.Complete;
            StatusIcon.sprite = QuestOverviewUI.GetCompleteIcon();

            if (listenerAdded)
            {
                StatusIcon.GetComponent <Button>().onClick.RemoveListener(CompleteObjective);
                listenerAdded = false;
            }

            ToggleIconActive();
        }
Esempio n. 4
0
        public void SetInProgress(QuestObjective objective)
        {
            status            = QuestElementStatus.InProgress;
            StatusIcon.sprite = QuestOverviewUI.GetInProgressIcon();

            if (!listenerAdded)
            {
                StatusIcon.GetComponent <Button>().onClick.AddListener(CompleteObjective);
                listenerAdded = true;
            }

            ToggleIconActive();
            SetInteractiveTrue(null);
        }