Example #1
0
        private void Attack()
        {
            _timer = 0f;

            if (_playerHealth.CurrentHealth > 0)
            {
                _playerHealth.TakeDamage(AttackDamage);
            }
        }
Example #2
0
 public void Damage()
 {
     _playerHealth.TakeDamage(damageAmount);
 }