public static void LoadPreContent(ContentManager content, GameWindow window, GraphicsDevice graphics) { graphicsDevice = graphics; //Load Pre textures and assets FontHandler.LoadContent(content); TextureHandler.LoadPreContent(content); background = new Background(TextureHandler.Sprites["Backgrounds/background1"], window); }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); textureHandler.LoadContent(this); fontHandler.LoadContent(this); tempCrate = Content.Load <Texture2D>("images/crate"); torchTexture = Content.Load <Texture2D>("images/torch"); }