/// <summary> /// Update methods for the levels during playing of the game. /// </summary> /// <param name="gameTime"></param> private void UpdateLevel(GameTime gameTime) { hero.Update(gameTime); switch (gameState) { case GameState.level1: level1.CheckForCollision(gameTime, hero, Content); break; case GameState.level2: level2.CheckForCollision(gameTime, hero, Content); break; case GameState.Beginner: levelBeginner.CheckForCollision(gameTime, hero, Content); break; default: break; } camera.Follow(hero.Position); }