Exemplo n.º 1
0
 // 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();
 }
Exemplo n.º 2
0
 public void AddTimer(TimerBase InTimerBase)
 {
     lock (syncLock)
     {
         timerDict.Add(timerIndex, InTimerBase);
         ++timerIndex;
         ++timerCount;
     }
 }