Guest User

Untitled

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

Adblocker detected! Please consider disabling it...

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

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

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

×