public void TakeDamage() { GameManager.enemiesKilled.Add(this.enemyID); pontuacao.pontos += 30; Objetivo.inimigos++; ParticleDeath.Die(transform, particles); Destroy(this.gameObject); }
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); } }