SHARE
TWEET

Untitled

a guest Jun 22nd, 2012 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Override
  2.         public void onBackPressed() {
  3.                     if (mCurrentScene instanceof GameScene){
  4.                         ((GameScene) mCurrentScene).detach();
  5.                         setCurrentScene(new MainMenuScene());
  6.                         }
  7.                     else if
  8.                         (mCurrentScene instanceof AboutScene){
  9.                             ((AboutScene) mCurrentScene).detach();
  10.                              setCurrentScene(new MainMenuScene());                     
  11.                     }
  12.                     else if
  13.                 (mCurrentScene instanceof MainMenuScene){
  14.                     super.onBackPressed();             
  15.                     }
  16.                     else {
  17.                         mCurrentScene = null;
  18.                         SensorListener.instance = null;
  19.                     }
  20.                    
  21.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top