private void OnTriggerEnter2D(Collider2D collision) { dialogueMenu.RecieveDialogueBranch(); // Add start branch here popup.gameObject.SetActive(true); popup.text = "Press [E] to " + info; inDialogueZone = true; }
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; } }