Beispiel #1
0
 public void TakeDamage()
 {
     GameManager.enemiesKilled.Add(this.enemyID);
     pontuacao.pontos += 30;
     Objetivo.inimigos++;
     ParticleDeath.Die(transform, particles);
     Destroy(this.gameObject);
 }
Beispiel #2
0
 public override void TakeDamage()
 {
     if (health > 0)
     {
         health--;
     }
     else
     {
         pontuacao.pontos += 15;
         Objetivo.inimigos++;
         GameManager.enemiesKilled.Add(this.enemyID);
         ParticleDeath.Die(transform, particles);
         Destroy(this.gameObject);
     }
 }