예제 #1
0
    public void ApplyHitActions()
    {
        if (HealthController != null)
        {
            float damage = damageTaken * (damageAmplification == 0 ? 1 : damageAmplification);
            HealthController.TakeDamage(damage);
        }

        if (HealthController != null)
        {
            float heal = healAmplification * (healAmplification == 0 ? 1 : healAmplification);
            HealthController.TakeHeal(heal);
        }

        if (EffectController != null)
        {
            effectsToAdd.ForEach(e => EffectController.AddEffect(e));
        }
    }