Example #1
0
 public void Damage(int damage)
 {
     health -= damage;
     if (health <= 0)
     {
         manager.Remove(this);
         Destroy(gameObject);
     }
 }