protected override void LoadContent() { mSpriteBatch = Game.Services.GetService<SpriteBatch>(); mInputState = Game.Services.GetService<InputHelper>(); FocusTexture = Game.Content.Load<Texture2D>(@"Texture\focus"); MissSound = Game.Content.Load<SoundEffect>(@"Sound\sound1"); WinSound = Game.Content.Load<SoundEffect>(@"Sound\sound2"); mNumberSheet = Game.Content.Load<Texture2D>(@"Texture\number"); base.LoadContent(); }
protected override void Initialize() { mSpriteBatch = new SpriteBatch(GraphicsDevice); Services.AddService(mSpriteBatch); mInputState = new InputHelper(); Services.AddService(mInputState); Components.Add(new Board(this)); base.Initialize(); }