/// <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); CurrentScreen = new StartScreen(this); mouseCursor = Content.Load <Texture2D>("GeonBit.UI/themes/hd/textures/cursor_default"); defaultBackground = Content.Load <Texture2D>(@"Zombicide Background"); Zombie.Game = this; // TODO: use this.Content to load your game content here }
public void SetNextScreen(string screenName) { switch (screenName) { case nameof(StartScreen): CurrentScreen = new StartScreen(this); break; case nameof(CharacterSelectScreen): CurrentScreen = new CharacterSelectScreen(this); break; case nameof(MainGameScreen): if (typeof(CharacterSelectScreen) == CurrentScreen.GetType()) { ActiveCharacter = ((CharacterSelectScreen)CurrentScreen).SelectedCharacter; } CurrentScreen = new MainGameScreen(this); break; } }