Exemplo n.º 1
0
 public override void Damage(int damage)
 {
     currentHealth -= damage;
     Instantiate(degats, transform.position, Quaternion.identity);
     if (currentHealth == 0)
     {
         Destroy(gameObject);
         myDrop.DropObject();
         myScore.currentScore += GetnbPoints();
     }
 }