public void TriggerConversation(ActorList actor)
 {
     if (actor == ActorList.BLOCKING_GUARD)
     {
         conversationManager.StartConversation(ConversationDatabase.BLOCKING_GUARD);
     }
     else if (actor == ActorList.DETECTIVE)
     {
         if (FlagManager.Instance.FIRST_MET_DETECTIVE_CORONER)
         {
             conversationManager.StartConversation(ConversationDatabase.DETECTIVE);
         }
         else
         {
             dialogueInitializer.TriggerDialogue(DialogueKeys.DETECTIVE_CORONER_INTRO, false);
         }
     }
     else if (actor == ActorList.CORONER)
     {
         if (FlagManager.Instance.FIRST_MET_DETECTIVE_CORONER)
         {
             conversationManager.StartConversation(ConversationDatabase.CORONER);
         }
         else
         {
             dialogueInitializer.TriggerDialogue(DialogueKeys.DETECTIVE_CORONER_INTRO, false);
         }
     }
 }
示例#2
0
 public void TriggerEvent(AfterEventList eventID)
 {
     if (eventID == AfterEventList.SHOW_ID_TO_GUARD)
     {
         SetShownGuardIdToTrue();
     }
     else if (eventID == AfterEventList.GO_PAST_GUARD_WITHOUT_SHOWING_ID)
     {
         ShowNoIdDialogueIfNoIdShown();
     }
     else if (eventID == AfterEventList.MOVE_BACK_BEHIND_GUARD)
     {
         StartCoroutine(MovePlayer());
     }
     else if (eventID == AfterEventList.HOMELESS_MAN_CONVERSATION)
     {
         dialogueInitializer.TriggerDialogue(DialogueKeys.HOMELESS_MAN_CONVERSATION, false);
     }
     else if (eventID == AfterEventList.FIRST_MET_DETECTIVE_CORONER)
     {
         SetFirstMetFlagAndGetAutopsyReport();
     }
 }
示例#3
0
 public void TriggerDialogue(TextMeshProUGUI text)
 {
     EndConversation();
     lastConversation.SetAsVisited(text.text);
     dialogueInitializer.TriggerDialogue(text.text, true);
 }