// 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; }
// Start is called before the first frame update void Start() { pathfinder = gameObject.transform.GetChild(0).gameObject; brain = gameObject.GetComponent <AIBrain>(); combat = transform.GetComponentInChildren <AiCombat>(); }