Guest User

Untitled

a guest
Jun 22nd, 2012
98
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