void OnTriggerEnter(Collider other) { if (!chatting && other.CompareTag("Player")) { chatting = true; player = other.gameObject; ObjectInteraction.ShowIcon(true); ObjectInteraction.ShowDialog(true); npcName.text = npc.name; string url = "Sprites/" + npc.icon; npcImage.sprite = Resources.Load <Sprite>(url); StartDialogue(); } }