public void SetInactive(Quest quest) { status = QuestElementStatus.Inactive; Highlighter.enabled = false; QuestStatusIcon.sprite = QuestOverviewUI.GetInactiveIcon(); HideObjectives(); ToggleIconActive(); }
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(); }