private void drawUI() { if (game.getGameState() == Game.GameState.START) { if (!infoLabel.isVisible()) infoLabel.setVisible(true); } else if (game.getGameState() == Game.GameState.RUNNING) { if (infoLabel.isVisible()) infoLabel.setVisible(false); } }
@Override public void render(float delta) { super.render(delta); if (game.getGameState() == Game.GameState.END) reaktio.setScreen(new ScoreScreen(reaktio, game, skin)); }