Resource Name: TimerService
Use as follows:
And wherein MyTimer TimerService class tools, the use of encapsulated SuperInvokeTag
MyTimerService.Inst.CreateTimer(2f,()=> {
Debug.LogError("延迟两秒");
});
//MyTimer my = MyTimerService.Inst.CreateRepeatTimer(2f,()=> {
// Debug.LogError("循环");
//});
//my.Stop();
JacobGames.SuperInvoke.SuperInvokeTag tag = MyTimerService.Inst.CreateDelayTimerWithHandler(2f,()=> {
Debug.LogError("返回句柄");
});
JacobGames.SuperInvoke.SuperInvoke.Kill(tag);