private void ProcessHit(DamagerDealer damageDealer)
 {
     health -= damageDealer.GetDamage();
     damageDealer.Hit();
     counterLifePlayer.ProcessDamage(damageDealer.GetDamage());
     if (health <= 0)
     {
         Die();
     }
 }
示例#2
0
 private void ProcessHit(DamagerDealer damageDealer)
 {
     health -= damageDealer.GetDamage();
     damageDealer.Hit();
     if (health <= 0)
     {
         Die();
     }
 }
示例#3
0
    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();
        }
    }