/// <summary> /// 更新资源补丁 /// </summary> /// <param name="resUpdate"></param> private void StartLoadPatchRes(ref List <ResVersion> resUpdate) { if (mRemoteResLoader != default) { mRemoteResLoader.Dispose(); } else { } int max = resUpdate.Count; if (max > 0) { mRemoteResLoader = new AssetsLoader(); mRemoteResLoader.RemoteAssetUpdated.AddListener(OnResItemUpdated); ResVersion item; string url, resName; for (int i = 0; i < max; i++) { item = resUpdate[i]; url = item.Url; resName = item.name; mRemoteResLoader.AddRemote(url, resName, true); } mRemoteResLoader.Load(out _); } else { UpdateHandler?.Invoke(true, 1f); } }