public void SetInactive(Quest quest)
 {
     status = QuestElementStatus.Inactive;
     Highlighter.enabled    = false;
     QuestStatusIcon.sprite = QuestOverviewUI.GetInactiveIcon();
     HideObjectives();
     ToggleIconActive();
 }
Exemple #2
0
        public void SetInactive(QuestObjective objective)
        {
            status            = QuestElementStatus.Inactive;
            StatusIcon.sprite = QuestOverviewUI.GetInactiveIcon();

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

            ToggleIconActive();
            QuestOverviewUI.ToggleContentSizeFitters();
        }