public void OnTriggerEnter(Collider other) { if (other.CompareTag("Player")) { if (talkable) { this.gameObject.GetComponent <NPC>().enabled = true; dialogueSystem.EnterRangeOfNPC(); } } }