SHARE
TWEET

Untitled

a guest Nov 20th, 2016 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. long gameStartedTimer = 0;
  2.  
  3. //on screen show
  4. gameStartedTimer = TimeUtils.nanoTime();
  5.  
  6. //update method
  7. if (!gameStarted) {
  8.                 if (TimeUtils.timeSinceNanos(gameStartedTimer) > 1000000000) { // 350
  9.                     gameStarted = true;
  10.                     gameStartedTimer = TimeUtils.nanoTime();
  11.                 }
  12.             }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top