public void ClearQuest(my_QuestLog theQuest) { notificationText = "CLEARED: " + theQuest.questname; notificationTimer = 0; theQuest.ClearQuest(); questLogs.Remove(theQuest); FetchNewQuest(); }
public void ClearQuest(string questName) { my_QuestLog theQuest = GetQuestLog(questName); if (theQuest != null) { notificationText = theQuest.questname + "IS CLEARED"; notificationTimer = 0; theQuest.ClearQuest(); questLogs.Remove(theQuest); } else { Debug.Log("ERROR: ClearQuest is using null theQuest reference"); } FetchNewQuest(); }