14.06.2011

pause unpause

posted by Karsten

/* * Game states */ public void pause() { synchronized (mSurfaceHolder) { if (mMode == STATE_RUNNING) setState(STATE_PAUSE); } } public void unpause() { // Move the real time clock up to now synchronized (mSurfaceHolder) { mLastTime = System.currentTimeMillis(); } setState(STATE_RUNNING); }

Share

Place your comment

Please fill your data and comment below.
Name
Email
Website
Your comment