void Start()
 {
     ai          = GetComponent <UnityStandardAssets.Characters.ThirdPerson.BradyAICharacterControl>();
     punch       = this.transform.GetChild(0).GetChild(1).gameObject;
     knifeTarget = GameObject.FindGameObjectWithTag("Player");
     halfHealth  = bradyHealth / 2;
 }
Beispiel #2
0
 void Start()
 {
     resources            = GameObject.FindGameObjectsWithTag("resource");
     ai                   = GetComponent <UnityStandardAssets.Characters.ThirdPerson.BradyAICharacterControl>();
     childrenRend         = GetComponentsInChildren <Renderer>();
     allResourcesGathered = false;
     hasTarget            = false;
 }