我正在调用游戏场景,加载场景,然后按返回或主页按钮。然后我再次启动应用程序,在启动画面后我得到黑屏。
或者我启动应用程序,在飞溅场景后加载场景。然后我用主页按钮关闭我的应用程序,我尝试在闪屏后重新打开我的应用程序,我得到黑屏。
以下来自我的游戏活动的代码:
public void onPopulateScene(Scene pScene,
OnPopulateSceneCallback pOnPopulateSceneCallback)
throws IOException {
mEngine.registerUpdateHandler(new TimerHandler(2f,
new ITimerCallback() {
public void onTimePassed(final TimerHandler pTimerHandler) {
mEngine.unregisterUpdateHandler(pTimerHandler);
String rstPhoneStorage = PhoneStorage
.ReadFromPhoneStorage(
resourcesManager.activity, "e");
String rstVerification = PhoneStorage
.ReadFromPhoneStorage(
resourcesManager.activity, "v");
if (rstPhoneStorage != null && rstPhoneStorage != "") {
if (rstVerification != null
&& rstVerification != "") {
SceneManager.getInstance()
.createMainMenuScene();
} else
SceneManager.getInstance()
.loadUnlockCodeSceneAfterWaitingCode(mEngine);
} else
SceneManager.getInstance()
.createRegisterMenuScene();
}
}));
pOnPopulateSceneCallback.onPopulateSceneFinished();
}
问题是什么 ?
问候。