示例#1
0
 public void ClearQuest(my_QuestLog theQuest)
 {
     notificationText  = "CLEARED: " + theQuest.questname;
     notificationTimer = 0;
     theQuest.ClearQuest();
     questLogs.Remove(theQuest);
     FetchNewQuest();
 }
示例#2
0
    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();
    }