18 lines
445 B
C#
18 lines
445 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class DealDamageEffect : IBattleEffect
|
|
{
|
|
private BattleParticipant target;
|
|
private int amount;
|
|
|
|
public DealDamageEffect(BattleParticipant target, int amount) {
|
|
this.target = target;
|
|
this.amount = amount;
|
|
}
|
|
|
|
public void Apply(IBattleEffectResolver resolver) {
|
|
resolver.DealDamage(this.target, this.amount);
|
|
}
|
|
}
|