Guest User


a guest
Jun 22nd, 2012
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  2. @Override
  3. public void onBackPressed() {
  4.     if (mCurrentScene instanceof GameScene){
  5.         ((GameScene) mCurrentScene).detach();
  6.     setCurrentScene(new MainMenuScene());
  7.     }
  8.     else{
  9.         mCurrentScene = null;
  10.     SensorListener.instance = null;
  11.         super.onBackPressed();
  12.     }
  13. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add to your ad blocker whitelist or disable your adblocking software.