public override void Execute()
 {
     if (QuestMachine.GetQuestNodeState(questID, questNodeID) != state)
     {
         QuestMachine.SetQuestNodeState(questID, questNodeID, state);
     }
 }
Example #2
0
 public override void StartChecking(System.Action trueAction)
 {
     base.StartChecking(trueAction);
     if (requiredQuestID == null)
     {
         return;
     }
     if (QuestMachine.GetQuestNodeState(requiredQuestID, requiredQuestNodeID) == requiredState)
     {
         SetTrue();
     }
     else
     {
         MessageSystem.AddListener(this, QuestMachineMessages.QuestStateChangedMessage, requiredQuestID.value);
     }
 }