// Use this for initialization void Start() { aid = new AiDirector(); NPCA = new NPCA(a_seperation, a_rotation, max_speed, aid); NPCB = new NPCB(a_seperation, a_rotation, max_speed, aid, max_perception, perception_constant); NPCC = new NPCC(a_seperation, a_rotation, max_speed, aid); NPCP = new NPCP(a_seperation, a_rotation, max_speed, aid); NPCW = new NPCW(a_seperation, a_rotation, max_speed, aid); }
void Start() { parentObj = transform.parent.GetComponent <NPCA>(); }