static public DecimalTimerManager GetInstance() { if (msInstance == null) { msInstance = new DecimalTimerManager(); } return(msInstance); }
public DecimalTimer(decimal time, bool loop) { mDead = false; mId = msIdCount++; mTime = time; mLastCallbackTime = 0; mTimeRemain = time; mLoop = loop; mDetalTime = 0; mDetalCallback = null; mDetalCallbackEx = null; DecimalTimerManager.GetInstance().RegisterTimer(this); }
public DecimalTimer(decimal time, bool loop, decimal detalTime, DetalCallbackEx callback, System.Object userData) { mDead = false; mId = msIdCount++; mTime = time; mLastCallbackTime = 0; mTimeRemain = time; mLoop = loop; mDetalTime = detalTime; mDetalCallback = null; mDetalCallbackEx = callback; mUserData = userData; DecimalTimerManager.GetInstance().RegisterTimer(this); }