void Update()
 {
     if (AmountOfHealth == 0)
     {
         Destroy(gameObject);
         ded.DropAmmoPack();
     }
 }
Esempio n. 2
0
 void Update()
 {
     if (AmountOfHealth == 0)
     {
         Destroy(gameObject);
         ded.DropAmmoPack();
         Instantiate(EnemyExplosion);
         Destroy(EnemyExplosion, 5);
         Instantiate(EnemyExplosionSound);
         Destroy(EnemyExplosionSound);
     }
 }