Advertisement
Jong

Simple Time Counter - AndEngine

Jan 18th, 2012
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. public class TimeCounter implements IUpdateHandler {
  2.     private float mSeconds;
  3.    
  4.     @Override
  5.     public void onUpdate(float pSecondsElapsed) {
  6.         this.mSeconds += pSecondsElapsed;
  7.  
  8.     }
  9.  
  10.     @Override
  11.     public void reset() {
  12.         this.mSeconds = 0;
  13.  
  14.     }
  15.    
  16.     public float getSeconds()
  17.     {
  18.         return this.mSeconds;
  19.     }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement