コード例 #1
0
 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
ファイル: DialoguePoint.cs プロジェクト: angelwu1113/Project
 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;
     }
 }