public static bool CanHit(this Melee m, Collider other) { if (other.tag != "Armor" && m.HitVelocity >= m.MinHitVelocity) { return(true); } else if (m.HitVelocity >= m.ArmorCrushVelocity) { return(true); } return(false); }
public static void HitPlayer(this Melee m, PlayerData owner, PlayerData otherPlayer) { otherPlayer.TakeDamage(m.baseAttack); }