Exemplo n.º 1
0
 private void ProcessHit(DamagerDealer damageDealer)
 {
     health -= damageDealer.GetDamage();
     damageDealer.Hit();
     counterLifePlayer.ProcessDamage(damageDealer.GetDamage());
     if (health <= 0)
     {
         Die();
     }
 }
Exemplo n.º 2
0
 private void ProcessHit(DamagerDealer damageDealer)
 {
     health -= damageDealer.GetDamage();
     damageDealer.Hit();
     if (health <= 0)
     {
         Die();
     }
 }
Exemplo n.º 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();
        }
    }