public MeleeHitbox(Attack.AttackType attackType, Attack.Element element, float length) { properties.attackType = attackType; properties.element = element; properties.attackLength = length; }
public override bool Damage(Attack.AttackType type, int damage, float knockback, int weight, Vector2 direction, EntityStatus ownerStatus) { entityController.Damage(type, damage, knockback, weight, direction, ownerStatus); EffectSpawner.instance.PopDamage(transform.position + new Vector3(0, 1f, -5f), damage); return(true); }
public static Attack GetAttack(float damage, Attack.AttackType type) { return(new Attack(damage, type)); }