Ejemplo n.º 1
0
 public override void Execute()
 {
     if (QuestMachine.GetQuestState(questID) != state)
     {
         QuestMachine.SetQuestState(questID, state);
     }
 }
 public override void StartChecking(System.Action trueAction)
 {
     base.StartChecking(trueAction);
     if (requiredQuestID == null)
     {
         return;
     }
     if (QuestMachine.GetQuestState(requiredQuestID) == requiredState)
     {
         SetTrue();
     }
     else
     {
         MessageSystem.AddListener(this, QuestMachineMessages.QuestStateChangedMessage, requiredQuestID.value);
     }
 }