Beispiel #1
0
    public override void Tick()
    {
        _hurtThisBeat = false;
        if (_currentHealth <= 0)
        {
            return;
        }

        if (_baseEnemy.IsAttackingOnBeat(_timeManager.CurrentBeat))
        {
            _player.TakeDamage(_baseEnemy.AttackDamage(_timeManager.CurrentBeat));
        }
    }