Exemple #1
0
        // force applied to missile when launched from weapon bay

        // Use this for initialization
        void Start()
        {
            targetSystem      = GetComponent <TargetSystem> ();
            targetSystemUI    = GetComponent <TargetSystemUI> ();
            machineGunControl = machineGun.GetComponent <MachineGunControl> ();
            //weaponLoadout = GameObject.Find("GameManager").GetComponent<GameManager>().weaponLoadout;
        }
Exemple #2
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 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;
        }