protected override void Draw(DeltaGameTime time, SpriteBatch spriteBatch) { if (LowerBackground == null || UpperBackground == null) return; Rectangle sizeRect = new Rectangle((int)Position.X, (int)Position.Y, (int)Size.X, (int)Size.Y); spriteBatch.DrawTiledArea(LowerBackground, lowerOffset, LowerBackground.Bounds, sizeRect); spriteBatch.DrawTiledArea(UpperBackground, upperOffset, UpperBackground.Bounds, sizeRect); base.Draw(time, spriteBatch); }