v0.8.0: tweaked lifecycle managment, actor thread is now allowed to end
This commit is contained in:
@@ -158,10 +158,10 @@ public class Game implements ApplicationListener {
|
||||
|
||||
public void finish(){
|
||||
Gdx.app.exit();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
public void destroy(){
|
||||
if (scene != null) {
|
||||
scene.destroy();
|
||||
scene = null;
|
||||
@@ -172,6 +172,11 @@ public class Game implements ApplicationListener {
|
||||
Sample.INSTANCE.reset();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
destroy();
|
||||
}
|
||||
|
||||
public static void resetScene() {
|
||||
switchScene( instance.sceneClass );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user