public static GameConfigs GetInstance() { if (instance == null) { instance = new GameConfigs(); } return(instance); }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); TextureHelper.GetInstance().DefaultSpriteMap = Content.Load <Texture2D>("sprites_map"); GameConfigs.GetInstance().DefaultFont = Content.Load <SpriteFont>("test_font"); GameConfigs.GetInstance().Center = new Point(Window.ClientBounds.Width / 2, Window.ClientBounds.Height / 2); GameConfigs.GetInstance().Widht = Window.ClientBounds.Width; GameConfigs.GetInstance().Height = Window.ClientBounds.Height; }