Beispiel #1
0
    private void applyEffects()
    {
        if (applyEffect != null)
        {
            GameObject instance = GameObject.Instantiate(applyEffect);
            instance.transform.position = targetSelf ? character.position : target.position;
        }

        target.AddBuffs(buffs);
    }
Beispiel #2
0
    private void applyEffects()
    {
        if (effect != null)
        {
            GameObject instance = GameObject.Instantiate(effect);
            instance.transform.position = targetSelf ? character.position : target.position;
        }

        destructible.Damage(CombatUtils.GetDamageToDestructible(destructible, weapon.baseDamage * damageModifier));
        target.AddBuffs(buffs);
    }