Exemple #1
0
    private void RemoveHealth(float damage)
    {
        _health -= damage;
        float newHealth = _health / _startingHealth;

        _Event_SetLives.Invoke(newHealth, this);
        _myDamage.DamageDisplay(newHealth);
    }
Exemple #2
0
 private void ShowDamage()
 {
     if (_showDamage != null)
     {
         _showDamage.DamageDisplay(_instanceHealth / _health);
     }
 }