private void ProcessHit(DamagerDealer damageDealer) { health -= damageDealer.GetDamage(); damageDealer.Hit(); counterLifePlayer.ProcessDamage(damageDealer.GetDamage()); if (health <= 0) { Die(); } }
private void ProcessHit(DamagerDealer damageDealer) { health -= damageDealer.GetDamage(); damageDealer.Hit(); if (health <= 0) { Die(); } }
private void DamageDealer(DamagerDealer damageDealer) { health -= damageDealer.GetDamage(); //We got the damage from the lazer and are subtracting to the health of this class damageDealer.Hit(); if (health <= 0) { Die(); } }