コード例 #1
0
 public LoadAssetOperation IsInProgress(string assetPath, string assetbundleName, string assetName)
 {
     if (ResContext.IsResourceMode)
     {
         return(ResContext.IsInProgress(assetPath, assetName));
     }
     else
     {
         return(ResContext.IsInProgress(assetbundleName, assetName));
     }
 }
コード例 #2
0
 public LoadAssetOperation LoadWindowWithResource(string resPath, LoadAssetCallback callback = null, ResourceLoadParam param = null)
 {
     if (string.IsNullOrEmpty(resPath))
     {
         return(null);
     }
     if (ResContext.IsInProgress(resPath, string.Empty) != null)
     {
         return(null);
     }
     return(ResContext.LoadAssetAsync(resPath, "", typeof(GameObject), true, callback, param));
 }
コード例 #3
0
 public LoadAssetOperation LoadWindowWithAssetBundle(string bundleName, string assetName, LoadAssetCallback callback = null, ResourceLoadParam param = null)
 {
     if (string.IsNullOrEmpty(assetName))
     {
         return(null);
     }
     if (ResContext.IsInProgress(bundleName, assetName) != null)
     {
         return(null);
     }
     return(ResContext.LoadAssetAsync(bundleName, assetName, typeof(GameObject), true, callback, param));
 }