void HitAndExplode(Effectable effectable) { int damage = Data.damageRange.RandomDamage(); effectable?.ApplyDamage(damage); effectable?.ApplyExplosion(5f); }
public override void Apply(Effectable ef, Vector2 targetPos) { ef?.ApplyDamage(DamageRange.RandomDamage()); }
public virtual void Damage(Effectable effectableObject, int damageAmount) { effectableObject.ApplyDamage(damageAmount); }