示例#1
0
 public static bool CheckForCollisionWithSightRect(ICollidable collidableObj, IHasSight hasSightObj)
 {
     return(collidableObj.BoundingBox.Intersects(hasSightObj.SightRect));
 }
示例#2
0
 public static bool CheckForCollisionWithSightRect(ICollidable collidableObj, IHasSight hasSightObj)
 {
     return collidableObj.BoundingBox.Intersects(hasSightObj.SightRect);
 }