예제 #1
0
        // Use this for initialization
        void Start()
        {
            radarSystem  = GetComponent <RadarSystemEnemy> ();
            targetSystem = GetComponent <TargetSystemEnemy> ();
            weaponSystem = GetComponent <WeaponSystem> ();

            weaponSystem.weaponLoadout.AddWeapon(missilePrefab, missileCount);
        }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     flightControl = GetComponent <FlightControl> ();
     radarSystem   = GetComponent <RadarSystem> ();
     targetSystem  = GetComponent <TargetSystem> ();
     weaponSystem  = GetComponent <WeaponSystem> ();
     cmSystem      = GetComponent <CounterMeasureSystem> ();
 }
예제 #3
0
        // Use this for initialization
        void Start()
        {
            // connecting with core modules
            radarSystem   = GetComponent <RadarSystemEnemy> ();
            weaponControl = GetComponent <WeaponSystem> ();

//		allTargets = radarSystem.allTargets;
            potentialTargets = radarSystem.potentialTargets;
        }
예제 #4
0
 // Use this for initialization
 void Start()
 {
     weaponSystem      = host.GetComponent <WeaponSystem> ();
     machineGunControl = machinegun.GetComponent <MachineGunControl> ();
     cmSystem          = host.GetComponent <CounterMeasureSystem> ();
 }