public static IRes Create(string assetName, string ownerBundleName, short assetType) { switch (assetType) { case ResType.AssetBundle: return(AssetBundleRes.Allocate(assetName)); case ResType.ABAsset: return(AssetRes.Allocate(assetName, ownerBundleName)); case ResType.ABScene: return(SceneRes.Allocate(assetName)); case ResType.Internal: return(InternalRes.Allocate(assetName, assetName.StartsWith("resources://") ? InternalResNamePrefixType.Url : InternalResNamePrefixType.Folder)); case ResType.NetImageRes: return(NetImageRes.Allocate(assetName)); case ResType.LocalImageRes: return(LocalImageRes.Allocate(assetName)); default: Log.E("Invalid assetType :" + assetType); return(null); } }
public static IRes Create(string assetName, string ownerBundleName, short assetType) { switch (assetType) { case ResType.AssetBundle: return(AssetBundleRes.Allocate(assetName)); case ResType.ABAsset: return(AssetRes.Allocate(assetName, ownerBundleName)); case ResType.ABScene: return(SceneRes.Allocate(assetName)); case ResType.Internal: return(InternalRes.Allocate(assetName)); case ResType.NetImageRes: return(NetImageRes.Allocate(assetName)); case ResType.LocalImageRes: return(LocalImageRes.Allocate(assetName)); default: Log.E("Invalid assetType :" + assetType); return(null); } }
public void OnSyncLoadFinish(IResLoader loader, InternalRes res) { }
public virtual void OnAsyncLoadFinish(IResLoader loader, InternalRes res) { }
public void OnSyncLoadFinish(IResLoader loader, InternalRes res) { //Log.W("OnSyncLoadFinish:InternalRes:" + res.name); }