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