@Override public void onResume() { startTime = Time.now(false); // Pause the game in the main menu Time.pauseGame(startTime); }
@Override protected void onUpdate(Timestamp time) { if (mStarted == false && startTime.durationTo(Time.now(false)).getSeconds() > 5) { mStarted = true; startActivity(new Intent(NewGameActivity.class)); Log.log("Start game"); } // MetaGame activeGame = GameClient.getInstance().getGameManager().getPreviousGame(); // if(activeGame == null) { // continueGameButton.setEnabled(false); // } else { // continueGameButton.setEnabled(true); // } }