Пример #1
0
 public void questComplete(QuestEventPublisher.QuestInformation questInfo)
 {
     if (questInfo.questName == questToBeCompletedName)
     {
         isPreQuest = false;
     }
 }
Пример #2
0
 // Start is called before the first frame update
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Y))
     {
         QuestEventPublisher.QuestInformation questInfo = new QuestEventPublisher.QuestInformation(questName);
         publisher.questCompleteEvent.Invoke(questInfo);
     }
 }