protected void InitAnimationTimer() { if (m_Timer == null) { m_Timer = new NcTimerTool_B(); } m_bEndAnimation = false; m_Timer.Start(); }
public float GetTime() { float fEngineTime = NcTimerTool_B.GetEngineTime(); if (m_bEnable == false && m_fPauseTime != fEngineTime) { m_fStartTime += NcTimerTool_B.GetEngineTime() - m_fPauseTime; m_fPauseTime = fEngineTime; } return(NcTimerTool_B.GetEngineTime() - m_fStartTime); }
public void SetTimer(float fStartTime, float fRepeatTime, int nRepeatCount, object arg) { SetRelTimer(fStartTime - NcTimerTool_B.GetEngineTime(), fRepeatTime, nRepeatCount, arg); }
// -------------------------------------------------------------------------- public void SetTimer(float fStartTime, object arg) { SetRelTimer(fStartTime - NcTimerTool_B.GetEngineTime(), arg); }
public void SetTimer(float fStartTime, float fRepeatTime) { SetRelTimer(fStartTime - NcTimerTool_B.GetEngineTime(), fRepeatTime); }
public void SetTimer(float fStartTime, float fRandomTime, float fMinIntervalTime, object arg) { SetRelTimer(fStartTime - NcTimerTool_B.GetEngineTime(), fRandomTime, fMinIntervalTime, arg); }
public void SetTimer(float fStartTime, float fRandomTime, float fMinIntervalTime, int nRepeatCount) { SetRelTimer(fStartTime - NcTimerTool_B.GetEngineTime(), fRandomTime, fMinIntervalTime, nRepeatCount); }
public void Pause() { m_bEnable = false; m_fPauseTime = NcTimerTool_B.GetEngineTime(); }