// Use this for initialization void Start() { text = transform.Find("Countdown").GetComponent <Text>(); countdown = TimerBase.RegisterCountdown(66, TimeType.hhmmss, text, () => { Debug.LogError("Countdown completed."); }, 1, this); countdown.Run(); }
public void AddTimer(TimerBase InTimerBase) { lock (syncLock) { timerDict.Add(timerIndex, InTimerBase); ++timerIndex; ++timerCount; } }