protected void InitAnimationTimer()
 {
     if (m_Timer == null)
     {
         m_Timer = new NcTimerTool_B();
     }
     m_bEndAnimation = false;
     m_Timer.Start();
 }
Esempio n. 2
0
    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);
 }
Esempio n. 6
0
 public void SetTimer(float fStartTime, float fRandomTime, float fMinIntervalTime, object arg)
 {
     SetRelTimer(fStartTime - NcTimerTool_B.GetEngineTime(), fRandomTime, fMinIntervalTime, arg);
 }
Esempio n. 7
0
 public void SetTimer(float fStartTime, float fRandomTime, float fMinIntervalTime, int nRepeatCount)
 {
     SetRelTimer(fStartTime - NcTimerTool_B.GetEngineTime(), fRandomTime, fMinIntervalTime, nRepeatCount);
 }
Esempio n. 8
0
 public void Pause()
 {
     m_bEnable    = false;
     m_fPauseTime = NcTimerTool_B.GetEngineTime();
 }