public bool IsCollisionPossible(GunBullet bullet, NotMovableGameObject notMovableGameObject) { return(IsCollisionPossible(bullet, notMovableGameObject.Position) || IsCollisionPossible(bullet, new Vector2( notMovableGameObject.Position.X - notMovableGameObject.Size, notMovableGameObject.Position.Y - notMovableGameObject.Size)) || IsCollisionPossible((MovableGameObject)bullet, notMovableGameObject)); }
public bool IsCollisionPossible(MovableGameObject movableObject, NotMovableGameObject notMovableObject) { return(IsCollisionPossible(movableObject, (GameObject)notMovableObject)); }