Пример #1
0
 public abstract bool HasCollided(RectangleColliderComponent rectangleColliderComponent);
Пример #2
0
 public override bool HasCollided(RectangleColliderComponent rectangleColliderComponent)
 {
     if (rectangleColliderComponent == null) return false;
     return CollisionRectangle.Intersects(rectangleColliderComponent.CollisionRectangle);
 }