예제 #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()
        {
            // connecting with core modules
            radarSystem   = GetComponent <RadarSystemEnemy> ();
            weaponControl = GetComponent <WeaponSystem> ();

//		allTargets = radarSystem.allTargets;
            potentialTargets = radarSystem.potentialTargets;
        }