public static void restart() { dispose(); for (Scene scene : new ArrayList<Scene>(scenes)) { scenes.remove(scene); scene.end(); } if (profiler.scene != null) profiler.scene.end(); init(); scenes.add(firstScene); }
@Override public void dispose() { Bdx.dispose(); }