// Use this for initialization void Start() { pH = GameObject.Find("Player").GetComponent <HealthThings> (); textM = this.GetComponent <TextMesh> (); }
void Start() { agent = this.GetComponent <NavMeshAgent> (); target = GameObject.Find("Player").transform; pH = GameObject.Find("Player").GetComponent <HealthThings> (); }