public static void completeQuest(string task) { foreach (Quest x in required) { if (x.getTask().Equals(task)) { x.markQuestCompleted(); MenuNav.complete(task); } } }
public static void completeQuest(Quest x) { x.markQuestCompleted(); MenuNav.complete(x.getTask()); }