Beispiel #1
0
 private void Awake()
 {
     //初始化计时器服务
     mTimerSvc = TimerServiceForTest.Instance;
     mTimerSvc.Init();
     //订阅(注册)计时器
     mTimerSvc.Subscribe("TestExample");
 }
Beispiel #2
0
 public TimerItem(TimerServiceForTest timerSvc)
 {
     mIsOpen   = true;
     mIsActive = timerSvc.mIsActive;
 }