private void OnTriggerStay(Collider other) { if (other.gameObject.tag == "NPC") { if (Input.GetKeyDown(KeyCode.E)) { GameObject npc = other.gameObject; TriggerDialogue(npc); notifications.CleanNotifications(); } } }