SHARE
TWEET

Untitled

a guest Jun 22nd, 2012 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  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
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