GameUpdateAsset.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // using UnityEngine;
  2. // using Utility;
  3. // // using WeChatWASM;
  4. //
  5. // namespace Fort23.Mono.UpdateAsset
  6. // {
  7. // public class GameUpdateAsset : Singleton<GameUpdateAsset>
  8. // {
  9. // private string urlRoot;
  10. //
  11. // public void Init(string urlRoot)
  12. // {
  13. // this.urlRoot = urlRoot;
  14. // LoadMD5();
  15. // }
  16. //
  17. // private void LoadMD5()
  18. // {
  19. // string md5 = urlRoot + "MD5.txt";
  20. // string loadMd5 = WXDownload.Instance.GetPluginCachePath() + "Bundle/MD5.txt";
  21. // string str = WXDownload.Instance.GetCachePath(loadMd5);
  22. // if (!string.IsNullOrEmpty(str))
  23. // {
  24. // Debug.Log("本地有缓存" + str);
  25. // //本地有缓存
  26. // }
  27. //
  28. // WXDownload.Instance.DownLoad(md5, "Bundle/MD5.txt", (bool isSuccess) =>
  29. // {
  30. // if (isSuccess)
  31. // {
  32. // Debug.Log("MD5下载成功");
  33. // }
  34. // else
  35. // {
  36. // Debug.Log("MD5下载失败");
  37. // }
  38. // });
  39. // }
  40. // }
  41. // }