public override byte Hitdetection(BasicHitBox OtherHitBox) { if (Hitbox.Colides(OtherHitBox)) { //getroffen und explodieren if (this.exploding == 0) { exploding = 1; } return(base.damage); } return(0); }
public override byte Hitdetection(BasicHitBox OtherHitBox) { if (Hitbox == null) { Hitbox = GetHitdetectionData(); } if (Hitbox.Colides(OtherHitBox)) { //getroffen und projectil "löschen" Alive = false; return(base.damage); } return(0); }