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