/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); GraphicsManager.Instance.SpriteBatch = spriteBatch; GraphicsManager.Instance.Graphics = graphics; ResourceManager.Instance.LoadContent(Content, GraphicsDevice); SettingsManager.Instance.LoadContent(); ScreenManager.Instance.SpriteBatch = spriteBatch; ScreenManager.Instance.LoadContent(); fpsIndicator.LoadContent(); cursor.LoadContent(); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); LogManager.Instance.LogsDirectory = ApplicationPaths.LogsDirectory; LogManager.Instance.LoadContent(); LogManager.Instance.Info(Operation.GameStart, OperationStatus.Started); GraphicsManager.Instance.SpriteBatch = spriteBatch; GraphicsManager.Instance.Graphics = graphics; ResourceManager.Instance.LoadContent(Content, GraphicsDevice); SettingsManager.Instance.LoadContent(); ScreenManager.Instance.SpriteBatch = spriteBatch; ScreenManager.Instance.LoadContent(); fpsIndicator.LoadContent(); cursor.LoadContent(); LogManager.Instance.Info(Operation.GameStart, OperationStatus.Success); }