Example #1
0
 public void setScene(BaseScene scene) {
   if (currentScene != null) {
     // Unload the current scene from the memory
     currentScene.disposeScene();
   }
   engine.setScene(scene);
   currentScene = scene;
 }