public LoadAssetOperation IsInProgress(string assetPath, string assetbundleName, string assetName) { if (ResContext.IsResourceMode) { return(ResContext.IsInProgress(assetPath, assetName)); } else { return(ResContext.IsInProgress(assetbundleName, assetName)); } }
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)); }
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)); }