赞
踩
其中MyTimer 与 TimerService类为工具类,将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);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。