private void OnTriggerEnter2D(Collider2D collision) { if (collision.CompareTag("Player")) { interactText.text = "Press E to interact"; countSeen += 1; if (countSeen > 1) { dialogueManager.Back(); } else { dialogueTrigger.TriggerDialogue(); } } }
private void OnTriggerEnter2D(Collider2D collision) { if (collision.CompareTag("Player")) { interactText.text = "Press E to interact"; countSeen += 1; if (countSeen > 1) { dialogueManager.Back(); } else { dialogueTrigger.TriggerDialogue(); } } }