// 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() { flightControl = GetComponent <FlightControl> (); radarSystem = GetComponent <RadarSystem> (); targetSystem = GetComponent <TargetSystem> (); weaponSystem = GetComponent <WeaponSystem> (); cmSystem = GetComponent <CounterMeasureSystem> (); }
// Use this for initialization void Start() { // connecting with core modules radarSystem = GetComponent <RadarSystemEnemy> (); weaponControl = GetComponent <WeaponSystem> (); // allTargets = radarSystem.allTargets; potentialTargets = radarSystem.potentialTargets; }
// Use this for initialization void Start() { weaponSystem = host.GetComponent <WeaponSystem> (); machineGunControl = machinegun.GetComponent <MachineGunControl> (); cmSystem = host.GetComponent <CounterMeasureSystem> (); }