protected void OnTriggerEnter2D(Collider2D other) { if (other.CompareTag("Player") && this.gameObject.tag != "DialogueTrigger") { GameObject.FindGameObjectWithTag("Sound").GetComponent <SoundScript>().prompt(); counter = 0; player = other.gameObject; enter = true; DialoguePanel.showOptions(); } }