// Start is called before the first frame update
 void Start()
 {
     brain       = gameObject.GetComponent <AIBrain>();
     combat      = transform.GetComponentInChildren <AiCombat>();
     attackpoint = gameObject.transform.GetChild(0).gameObject.transform;
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     pathfinder = gameObject.transform.GetChild(0).gameObject;
     brain      = gameObject.GetComponent <AIBrain>();
     combat     = transform.GetComponentInChildren <AiCombat>();
 }