private void disposeGameScene() {
   gameScene.setIgnoreUpdate(true);
   ResourceManager.getInstance().unloadGameTextures();
   ResourceManager.getInstance().unloadGamePause();
   gameScene.disposeScene();
   gameScene = null;
 }
 private void createGameScene() {
   ResourceManager.getInstance().loadGameTextures();
   ResourceManager.getInstance().loadGamePause();
   gameScene = new GameScene();
   ((GameScene) gameScene).setGameScene();
   SceneManager.getInstance().setScene(gameScene);
 }
 public void createMenuScene() {
   ResourceManager.getInstance().loadMenu();
   ResourceManager.getInstance().loadFonts();
   menuScene = new MainMenuScene();
   SceneManager.getInstance().setScene(menuScene);
   if (!GameActivity.getIniciado()) disposeIntroScene();
 }
 public void createSelectorScene() {
   ResourceManager.getInstance().loadSelector();
   selectorScene = new SelectorScene();
   ((SelectorScene) selectorScene).initScene();
   SceneManager.getInstance().setScene(selectorScene);
   disposeMenuScene();
 }
 public void disposeSelectorScene() {
   ResourceManager.getInstance().unloadSelector();
   selectorScene.disposeScene();
   selectorScene = null;
 }
 public void disposeSettingsScene() {
   ResourceManager.getInstance().unloadSettings();
   settingsScene.disposeScene();
   settingsScene = null;
 }
 public void createSettingsScene() {
   ResourceManager.getInstance().loadSettings();
   settingsScene = new SettingsScene();
   SceneManager.getInstance().setScene(settingsScene);
   disposeMenuScene();
 }
 private void disposeLoadScene() {
   ResourceManager.getInstance().unloadFonts();
   loadScene.disposeScene();
   loadScene = null;
 }
 public void createLoadScene() {
   ResourceManager.getInstance().loadFonts();
   loadScene = new LoadScene();
   SceneManager.getInstance().setScene(loadScene);
 }
Beispiel #10
0
 private void disposeMenuScene() {
   menuScene.setIgnoreUpdate(true);
   ResourceManager.getInstance().unloadMenu();
   menuScene.disposeScene();
   menuScene = null;
 }
Beispiel #11
0
 private void disposeIntroScene() {
   ResourceManager.getInstance().unloadIntro();
   introScene.disposeScene();
   introScene = null;
 }