예제 #1
0
    public override void ProcessOnTarget(IDamageable target)
    {
        print(ElementType + " processed on target " + target);
        target.TakeDamage(10f);
        target.ApplyEffect(new FireEffect(target));

        foreach (Animator animator in animators)
        {
            animator.SetTrigger("attack");
        }
    }
예제 #2
0
    public override void ProcessOnTarget(IDamageable target)
    {
        print(ElementType + " processed on target " + target);
        target.TakeDamage(6f);

        if (target.GetGameObject().TryGetComponent <ISlowable>(out var slowable))
        {
            target.ApplyEffect(new IceEffect(target, slowable));
        }

        foreach (var animator in animators)
        {
            animator.SetTrigger("attack");
        }
    }