Exemplo n.º 1
0
 /// <summary>
 /// 释放可释放的预加载资源(递归判定,不限制回收数量)
 /// Note:
 /// 切场景前调用,确保所有预加载资源正确释放
 /// </summary>
 public void unloadAllUnsedPreloadLoadedResources()
 {
     CurrentResourceModule.unloadAllUnsedPreloadLoadedResources();
 }
Exemplo n.º 2
0
 /// <summary>
 /// 提供给外部的触发卸载所有正常加载不再使用的资源资源(递归判定,不限制回收数量)
 /// Note:
 /// 同步接口,回收数量会比较大,只建议切场景时场景卸载后调用一次
 /// </summary>
 public void unloadAllUnsedNormalLoadedResources()
 {
     CurrentResourceModule.unloadAllUnsedNormalLoadedResources();
 }
Exemplo n.º 3
0
 public void Update()
 {
     CurrentResourceModule.Update();
 }
Exemplo n.º 4
0
 /// <summary>
 /// 获取指定AB名字的资源加载信息
 /// </summary>
 /// <param name="abname"></param>
 /// <returns></returns>
 public AbstractResourceInfo getSpecificARI(string abname)
 {
     return(CurrentResourceModule.getSpecificARI(abname));
 }
Exemplo n.º 5
0
 /// <summary>
 /// 请求资源
 /// 资源加载统一入口
 /// </summary>
 /// <param name="resname">资源AB名</param>
 /// <param name="completehandler">加载完成上层回调</param>
 /// <param name="loadtype">资源加载类型</param>
 /// <param name="loadmethod">资源加载方式</param>
 public void requstResource(string resname, AbstractResourceModule.LoadResourceCompleteHandler completehandler, ResourceLoadType loadtype = ResourceLoadType.NormalLoad, ResourceLoadMethod loadmethod = ResourceLoadMethod.Sync)
 {
     CurrentResourceModule.requstResource(resname, completehandler, loadtype, loadmethod);
 }
Exemplo n.º 6
0
 /// <summary>
 /// 添加指定资源到白名单
 /// </summary>
 /// <param name="resname">资源名(既AB名)</param>
 public void addToWhiteList(string resname)
 {
     CurrentResourceModule.addToWhiteList(resname);
 }
Exemplo n.º 7
0
 /// <summary>
 /// 开启资源不再使用回收检测
 /// </summary>
 public void startResourceRecyclingTask()
 {
     CurrentResourceModule.startResourceRecyclingTask();
 }