示例#1
0
 public void initialize()
 {
     //检测一次时间池子
     TimerMgr.addEveryMillHandler(checkUseTime, 60000);
     //TimerMgr.addSecHandler(1, null, (count) =>
     //{
     //    disposeAll();
     //    Debug.LogWarning("CS Pool释放所有清理完成");
     //    AssetMgr.clearAll();
     //    Debug.LogWarning("CS AssetMgr.clearAll()清理完成");
     //}, 30);
     //TimerMgr.addEveryMillHandler((count)=> { AssetMgr.clearAll(); },150000 );
 }
示例#2
0
 public void initialize()
 {
     TimerMgr.addEveryMillHandler(onTick, 50);
 }
示例#3
0
 public static long addEveryMillHandler(Action <int> eHandler, int interval = 1)
 {
     return(TimerMgr.addEveryMillHandler(eHandler, interval));
 }
示例#4
0
 public void initialize()
 {
     bundlePool = new Dictionary <string, TBundle>();
     removeLst  = new List <string>();
     TimerMgr.addEveryMillHandler(onTick, 60000);
 }