Beispiel #1
0
 /// <summary>
 /// 缓存加载好的资源
 /// </summary>
 /// <param name="ResPath"></param>
 /// <param name="resInfo"></param>
 public void CacheResource(string ResPath, ResInfo resInfo)
 {
     //缓存太多,清除最早没有使用的资源
     WashOut();
     mResDictionary.AddValue <uint, ResInfo>(Crc32.GetCrc32(ResPath), resInfo);
 }
Beispiel #2
0
 /// <summary>
 /// 取消异步加载资源
 /// </summary>
 /// <returns></returns>
 public bool CancleLoadRes(string resPath)
 {
     return(ResManager.Instance.CancelResLoad(Crc32.GetCrc32(resPath)));
 }