protected override void LoadContent() { #region DoNotEdit spriteBatch = new SpriteBatch(GraphicsDevice); #endregion pauseMenu.LoadContent(Content); cursor.Texture = Content.Load <Texture2D>("Textures/UI/Cursors/cursorNormal"); // Загрузка контента для курсора pauseButton.LoadContent(Content); shopButton.LoadContent(Content); closeShopButton.LoadContent(Content); shop.LoadContent(Content); mainMenu.LoadContent(Content); for (int i = 0; i < wallList.Count; i++) { wallList[i].LoadContent(Content); } eritroTexture = Content.Load <Texture2D>("Textures/eritro"); leikoTexture = Content.Load <Texture2D>("Textures/leiko"); bacteriumTexture = Content.Load <Texture2D>("Textures/bacterium"); tromboTexture = Content.Load <Texture2D>("Textures/trombo"); _bite_soundEffect = Content.Load <SoundEffect>("Sounds/bite"); _death_soundEffect = Content.Load <SoundEffect>("Sounds/kill"); background.LoadContent(Content); music = Content.Load <Song>("Sounds/music1"); penetration = Content.Load <SoundEffect>("Sounds/Penetration"); endMenu.LoadContent(Content); hud.LoadContent(Content); InGameNotification.LoadContent(Content); // Внутриигровые уведомления (например недостаточно денег) }
public void LoadContent(ContentManager Content) { backgound = Content.Load <Texture2D>("Textures/UI/background"); topTexture = Content.Load <Texture2D>("Textures/UI/top"); card0.LoadContent(Content); card1.LoadContent(Content); card2.LoadContent(Content); InGameNotification.LoadContent(Content); #region Fonts fontRegular = Content.Load <SpriteFont>("Fonts/regular"); fontBold = Content.Load <SpriteFont>("Fonts/bold"); #endregion _currentMouseState = Mouse.GetState(); _previousMouseState = _currentMouseState; }