void OnTriggerEnter2D(Collider2D col) { if (col.gameObject.CompareTag("Player")) { dialogueEvent.InitiateDialogue(); GameObject.Destroy(gameObject); } }
void OnTriggerEnter2D(Collider2D col) { if (col.gameObject.CompareTag("Player")) { dialogueEvent.InitiateDialogue(); GameObject.Destroy(gameObject); } }