Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2012
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement