protected override void LoadContent() { sb = new SpriteBatch(GraphicsDevice); // Load static content Test.LoadStaticContent(Content); Slider.LoadContent(Content); Button.LoadContent(Content); font = Content.Load <SpriteFont>("UIFont"); menu = new TestMenu(GraphicsDevice, Content); menu.TestSelected += (type) => SetCurrentTest(type); base.LoadContent(); }
protected override void LoadContent() { sb = new SpriteBatch(GraphicsDevice); // Load static content Test.LoadStaticContent(Content); Slider.LoadContent(Content); Button.LoadContent(Content); font = Content.Load<SpriteFont>("UIFont"); menu = new TestMenu(GraphicsDevice, Content); menu.TestSelected += (type) => SetCurrentTest(type); base.LoadContent(); }