public void DoAction(SetQuestStateAction action, Transform actor)
 {
     if ((action != null) && !string.IsNullOrEmpty(action.questName)) {
         QuestLog.SetQuestState(action.questName, action.questState);
         if (!string.IsNullOrEmpty(action.alertMessage)) DialogueManager.ShowAlert(action.alertMessage);
     }
 }
 private void TryActions(SetQuestStateAction[] actions, Transform actor)
 {
     if (actions == null) return;
     foreach (SetQuestStateAction action in actions) {
         if (action != null && action.condition != null && action.condition.IsTrue(actor)) DoAction(action, actor);
     }
 }
 public void DoAction(SetQuestStateAction action, Transform actor)
 {
     if ((action != null) && !string.IsNullOrEmpty(action.questName))
     {
         QuestLog.SetQuestState(action.questName, action.questState);
         if (!string.IsNullOrEmpty(action.alertMessage))
         {
             DialogueManager.ShowAlert(action.alertMessage);
         }
     }
 }