private void OnTriggerEnter2D(Collider2D collision)
 {
     dialogueMenu.RecieveDialogueBranch(); // Add start branch here
     popup.gameObject.SetActive(true);
     popup.text     = "Press [E] to " + info;
     inDialogueZone = true;
 }
Пример #2
0
 private void OnTriggerEnter(Collider collision)
 {
     //add an if statement to check if colliding with player
     if (collision.gameObject.CompareTag("Player"))
     {
         dialogueMenu.RecieveDialogueBranch(startBranch); // Add start branch here
         popup.gameObject.SetActive(true);
         popup.text     = "Press [E] to " + info;
         inDialogueZone = true;
     }
 }