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