コード例 #1
0
ファイル: ResFactory.cs プロジェクト: Orangexx/Fighter
        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);
            }
        }
コード例 #2
0
ファイル: ResFactory.cs プロジェクト: tansir23/QFramework
        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);
            }
        }
コード例 #3
0
 public void OnSyncLoadFinish(IResLoader loader, InternalRes res)
 {
 }
コード例 #4
0
 public virtual void OnAsyncLoadFinish(IResLoader loader, InternalRes res)
 {
 }
コード例 #5
0
 public void OnSyncLoadFinish(IResLoader loader, InternalRes res)
 {
     //Log.W("OnSyncLoadFinish:InternalRes:" + res.name);
 }