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