void OnTriggerEnter(Collider col) { if(col.gameObject.name == "Player") { myText.text = "Click to Talk!"; inRange = true; } }