Beispiel #1
0
 //Sets health, speed, finds it's own radars and spawner and targets player.
 void Start()
 {
     this.playerShip        = GameObject.Find("PlayerShip");
     this.enemyHitPoints    = 200f;
     this.enemyShipSpeed    = 2f;
     this.radar             = GetComponentInChildren <Radar> ();
     this.carrierSubSpawner = GetComponentInChildren <CarrierSubSpawner> ();
 }
Beispiel #2
0
 //Sets health, speed, finds it's own radars and weapons and targets player.
 void Start()
 {
     this.playerShip        = GameObject.Find("PlayerShip");
     this.radar             = GetComponentInChildren <Radar> ();
     this.targetRadar       = GetComponentInChildren <TargetRadar> ();
     this.laser1            = GetComponentInChildren <Laser> ();
     this.laser2            = GetComponentInChildren <LaserLeft> ();
     this.carrierSubSpawner = GetComponentInChildren <CarrierSubSpawner> ();
     this.fanaticSpawner    = GetComponentInChildren <FanaticSpawner> ();
     this.doomLaser         = GetComponentInChildren <DoomLaser> ();
     this.enemyHitPoints    = 1000f;
     this.enemyShipSpeed    = 3f;
 }