void HitAndExplode(Effectable effectable)
    {
        int damage = Data.damageRange.RandomDamage();

        effectable?.ApplyDamage(damage);
        effectable?.ApplyExplosion(5f);
    }
예제 #2
0
 public override void Apply(Effectable ef, Vector2 targetPos)
 {
     ef?.ApplyDamage(DamageRange.RandomDamage());
 }
예제 #3
0
 public virtual void Damage(Effectable effectableObject, int damageAmount)
 {
     effectableObject.ApplyDamage(damageAmount);
 }