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 ); }
public void initialize() { TimerMgr.addEveryMillHandler(onTick, 50); }
public static long addEveryMillHandler(Action <int> eHandler, int interval = 1) { return(TimerMgr.addEveryMillHandler(eHandler, interval)); }
public void initialize() { bundlePool = new Dictionary <string, TBundle>(); removeLst = new List <string>(); TimerMgr.addEveryMillHandler(onTick, 60000); }