Example #1
0
 public void DisposeResoucesObj(string bundleName, string resName)
 {
     if (loadObjs.ContainsKey(bundleName))
     {
         AssetResObjs tmpObj = loadObjs[bundleName];
         tmpObj.ReleaseResObj(resName);
     }
 }
Example #2
0
 public void DisposeResoucesObj(string bundleName)
 {
     if (loadObjs.ContainsKey(bundleName))
     {
         AssetResObjs tmpObj = loadObjs[bundleName];
         tmpObj.ReleaseAllResObj();
     }
     Resources.UnloadUnusedAssets();
 }
Example #3
0
 public Object[] GetMultResources(string bundleName, string resName)
 {
     if (loadObjs.ContainsKey(bundleName))
     {
         AssetResObjs  tmpRes = loadObjs[bundleName];
         List <Object> tmpObj = tmpRes.GetResObj(resName);
         if (tmpObj != null)
         {
             return(tmpObj.ToArray());
         }
         else
         {
         }
     }
     if (loadHelper.ContainsKey(bundleName))
     {
         IABRelationManager loader       = loadHelper[bundleName];
         Object[]           tmpObj       = loader.GetMutiResources(resName);
         AssetResObj        tempAssetObj = new AssetResObj(tmpObj);
         if (loadObjs.ContainsKey(bundleName))
         {
             AssetResObjs tmpRes = loadObjs[bundleName];
             tmpRes.AddResObj(resName, tempAssetObj);
         }
         else
         {
             AssetResObjs tmpRes = new AssetResObjs(resName, tempAssetObj);
             loadObjs.Add(bundleName, tmpRes);
         }
         return(tmpObj);
     }
     else
     {
         return(null);
     }
 }