Beispiel #1
0
 // 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 <RadarSystem> ();
            weaponControl = GetComponent <WeaponSystem> ();

//		allTargets = radarSystem.allTargets;
            potentialTargets = radarSystem.potentialTargets;
        }
        // Use this for initialization
        void Start()
        {
            // connecting to the core systems
            radarSystem  = GetComponent <RadarSystem> ();
            targetSystem = GetComponent <TargetSystem> ();

            //getting access to the radar detection
            // requires connection to the core systems first
            potentialTargets = radarSystem.potentialTargets;
            currentTargets   = targetSystem.currentTargets;
            lockingTargets   = targetSystem.lockingTargets;
            lockedTargets    = targetSystem.lockedTargets;

            // maximum number of radar detection and weapon detections. These are acquired
            // from the target system module
            maxSimultaneousTarget = targetSystem.maxSimultaneousTarget;
        }