private void OnCompleted() { IsCompleted = true; var generationQuest = new Quest(generationTargetData); onCompleted.Invoke(generationQuest); }
private void completeQuest() { state = QUEST_STATE.COMPLETE; if (questCondition) { questCondition.isSatisfied = true; } OnQuestComplete.Invoke(this); parentQuestList.invokeQuestGlobalEvent(this, state); }
// This is the entry point called from QuestReactions in order to activate a quest. public void activeQuest() { state = QUEST_STATE.ACTIVE; for (int i = 0; i < questGoals.Length; i++) { questGoals[i].goalState = QUEST_STATE.ACTIVE; } OnQuestActive.Invoke(this); parentQuestList.invokeQuestGlobalEvent(this, state); }
public void CompleteQuestButtonClicked() { if (!_questCompleteButtonAlreadyClicked) // prevents NPC spamming the button { _questCompleteButtonAlreadyClicked = true; if (SourceVillage) { // give reward influence InfluenceOnQuestComplete.Invoke(SourceVillage, RewardInfluence); } // give reward money MoneyOnQuestComplete.Invoke(RewardGoldAmt); Destroy(gameObject); } }
public static void Dead(Enemy e, UserCharacter u) { // delegate 호출 DelegateQuestEvent?.Invoke(e, u); }
private void failQuest() { state = QUEST_STATE.FAILED; OnQuestFailed.Invoke(this); parentQuestList.invokeQuestGlobalEvent(this, state); }
private void OnQuestStateChanged(Quest quest) { onQuestStateChange.Invoke(quest); }
private void OnQuestRemoved(Quest quest) { onRemoveQuest.Invoke(quest); }
private void OnQuestBecameOfferable(Quest quest) { onQuestOfferable.Invoke(quest); }
private void OnQuestAdded(Quest quest) { onAddQuest.Invoke(quest); }
private void onQuestCompleteRaised(Quest quest) { OnQuestComplete.Invoke(quest); //Debug.Log("onQuestCompleteRaised: " + quest.name); }
private void onQuestFailedRaised(Quest quest) { OnQuestFailed.Invoke(quest); //Debug.Log("onQuestFailedRaised: " + quest.name); }
private void onQuestActiveRaised(Quest quest) { OnQuestActive.Invoke(quest); //Debug.Log("onQuestActiveRaised: " + quest.name); }
private void OnCompleted() { IsCompleted = true; Inventory.Instance.IncreaseMoney(questData.rewardMoney); onCompleted.Invoke(this); }