public void CompleteObjective(Quest quest, string objective) { QuestStatus status = GetQuestStatus(quest); status.CompleteObjective(objective); if (status.IsComplete()) { GiveReward(quest); } if (onUpdate != null) { onUpdate(); } }
public void CompleteObjective(Quest quest, string objective) { QuestStatus status = GetQuestStatus(quest); if (status != null) { status.CompleteObjective(objective); if (status.IsComplete()) { GiveReward(quest); } onQuestListUpdated?.Invoke(); } }