| 1234567891011121314151617181920212223242526272829303132333435363738394041 | // using UnityEngine;// using Utility;// // using WeChatWASM;//// namespace Fort23.Mono.UpdateAsset// {//     public class GameUpdateAsset : Singleton<GameUpdateAsset>//     {//         private string urlRoot;////         public void Init(string urlRoot)//         {//             this.urlRoot = urlRoot;//             LoadMD5();//         }////         private void LoadMD5()//         {//             string md5 = urlRoot + "MD5.txt";//             string loadMd5 = WXDownload.Instance.GetPluginCachePath() + "Bundle/MD5.txt";//             string str = WXDownload.Instance.GetCachePath(loadMd5);//             if (!string.IsNullOrEmpty(str))//             {//                 Debug.Log("本地有缓存" + str);//                 //本地有缓存//             }////             WXDownload.Instance.DownLoad(md5, "Bundle/MD5.txt", (bool isSuccess) =>//             {//                 if (isSuccess)//                 {//                     Debug.Log("MD5下载成功");//                 }//                 else//                 {//                     Debug.Log("MD5下载失败");//                 }//             });//         }//     }// }
 |