예제 #1
0
        public void ResetTimer(int sequence)
        {
            C_Timer timer = GetTimer(sequence);

            if (timer != null)
            {
                timer.Reset();
            }
        }
예제 #2
0
        public void ResetTimerTotalTime(int sequence, float totalTime)
        {
            C_Timer timer = GetTimer(sequence);

            if (timer != null)
            {
                timer.ResetTotalTime(totalTime);
            }
        }
예제 #3
0
        public void PauseTimer(int sequence)
        {
            C_Timer timer = GetTimer(sequence);

            if (timer != null)
            {
                timer.Pause();
            }
        }
예제 #4
0
        public float GetLeftTime(int sequence)
        {
            C_Timer timer = GetTimer(sequence);

            if (timer != null)
            {
                return(timer.GetLeftTime());
            }

            return(-1);
        }
예제 #5
0
        public float GetTimerCurrent(int sequence)
        {
            C_Timer timer = GetTimer(sequence);

            if (timer != null)
            {
                return(timer.CurrentTime);
            }

            return(-1);
        }