Exemple #1
0
 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);
 }
Exemple #2
0
 public static void HitPlayer(this Melee m, PlayerData owner, PlayerData otherPlayer)
 {
     otherPlayer.TakeDamage(m.baseAttack);
 }