Exemple #1
0
 protected virtual void TakeDamage(Damage damage)
 {
     _properity.healthPoint -= damage.attackPoint * (1 - _properity.defensePercent);
 }
Exemple #2
0
 public BTank()
 {
     _properity = new Properity();
     _damage    = new Damage();
 }