// Use this for initialization void Start() { radarSystem = GetComponent <RadarSystemEnemy> (); targetSystem = GetComponent <TargetSystemEnemy> (); weaponSystem = GetComponent <WeaponSystem> (); weaponSystem.weaponLoadout.AddWeapon(missilePrefab, missileCount); }
// Use this for initialization void Start() { // connecting with core modules radarSystem = GetComponent <RadarSystemEnemy> (); weaponControl = GetComponent <WeaponSystem> (); // allTargets = radarSystem.allTargets; potentialTargets = radarSystem.potentialTargets; }