Beispiel #1
0
 //check if you should punch that box
 public bool ValidatePunch(BoxController other)
 {
     if (other == this)
     {
         return(false);
     }
     other.KnockBack((other.Position - this.Position).normalized * knockBackStrength);
     other.Damage(attackDamage);
     return(true);
 }