Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public bool Intersects(Hitbox myHitbox, Hitbox otherHitbox)
 {
     return(myHitbox.Intersects(otherHitbox));
 }