public void Update(GameTime gameTime) { //change what we update based on gamestate switch (gameState) { // don't have to update anything case GameState.MainMenu: case GameState.Settings: case GameState.Credits: case GameState.GameOver: //change the text to the score GameOver.RenameItem(3, $"Your score is: {game.score}"); break; // update game case GameState.Running: game.Update(gameTime); if (game.gameOver) { gameState = GameState.GameOver; } break; } }