コード例 #1
0
ファイル: Enemy.cs プロジェクト: ThuCommix/Sharpex2D
 /// <summary>
 /// A value indicating whether the hitbox intersects with another.
 /// </summary>
 /// <param name="dynamicHitbox">The other DynamicHitbox.</param>
 /// <returns>True if intersecting.</returns>
 public bool IntersectsWith(IDynamicHitbox dynamicHitbox)
 {
     return Bounds.Intersects(dynamicHitbox.Bounds);
 }
コード例 #2
0
 /// <summary>
 /// A value indicating whether the hitbox intersects with another.
 /// </summary>
 /// <param name="dynamicHitbox">The other DynamicHitbox.</param>
 /// <returns>True if intersecting.</returns>
 public bool IntersectsWith(IDynamicHitbox dynamicHitbox)
 {
     return(Bounds.Intersects(dynamicHitbox.Bounds));
 }