private bool onActionEvent(InputEvents.ActionEvent evt) { switch (evt.Action) { case InputEvents.Actions.Action1: hookAndReel(); break; case InputEvents.Actions.Cancel: finishMinigame(); questService.SendEvent("FishingGameFailed"); break; } return(false); }
protected override void OnEnable() { if (Owner.CompareTag("Player")) { QuestService questService = Service.Get <QuestService>(); questService.SendEvent(QuestEvent); } }
public void OnAnimationEvent(string eventName) { for (int i = 0; i < events.Length; i++) { if (events[i].animationEventName == eventName) { questService.SendEvent(events[i].questEventName); } } }
private void SendEvent(string evt) { QuestService questService = Service.Get <QuestService>(); Quest activeQuest = questService.ActiveQuest; if (activeQuest != null && activeQuest.Definition.name == QuestName) { questService.SendEvent(evt); if (eventHook != null) { eventHook(evt); } } }
private void completePath() { StopPath(); questService.SendEvent("PathComplete"); }