// Use this for initialization
 void Start()
 {
     Target      = GameObject.FindWithTag("EnemyShootPoint");
     BossShip    = GameObject.FindGameObjectsWithTag("BossShip");
     BossScripts = BossShip[0].GetComponent <DN_BossShip>();
     _objectpool = new DictionaryObjectPool();
     _objectpool.AddObjectPool("EnemyBullet", Bullets, ShootPoint.transform, 100);
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     if (!Enemy)
     {
         SpawnerObject = GameObject.FindGameObjectsWithTag("Spawner");
         SpawnScripts  = SpawnerObject[0].GetComponent <WaveSpawner>();
         if (SpawnScripts.nextWave == 4)
         {
             this.transform.parent = null;
             Boss        = GameObject.FindGameObjectsWithTag("BossShip");
             BossScripts = Boss[0].GetComponent <DN_BossShip>();
         }
     }
     if (Enemy)
     {
         Camera           = GameObject.FindGameObjectsWithTag("Camera");
         ShipScripts      = Camera[0].GetComponent <DN_SpaceShipControl>();
         transform.parent = Camera[0].transform;
     }
 }
 //public float ResetFireRate;
 // Use this for initialization
 void Start()
 {
     BossScripts = BossShip.GetComponent <DN_BossShip>();
     _objectpool = new DictionaryObjectPool();
     _objectpool.AddObjectPool("EnemyBullet", Bullets, ShootPoint.transform, 100);
 }