public bool Intersects(string myHitboxName, Sprite otherSprite) { Hitbox myHitbox = this.GetHitbox <Hitbox>(myHitboxName); foreach (Hitbox otherHitbox in otherSprite.Hitboxes) { if (myHitbox.Intersects(otherHitbox)) { return(true); } } return(false); }
public bool Intersects(Hitbox myHitbox, Hitbox otherHitbox) { return(myHitbox.Intersects(otherHitbox)); }