Пример #1
0
        ///***以下、ファイル追加・ロード処理***///


        // 管理ファイルを追加
        AssetFileBase AddSub(string path, IAssetFileSettingData settingData)
        {
            AssetFileBase file;

            //管理テーブルにあるなら、そこから
            if (!fileTbl.TryGetValue(path, out file))
            {
                if (path.Contains(" "))
                {
                    Debug.LogWarning("[" + path + "] contains white space");
                }
                AssetBundleInfo assetBundleInfo = AssetBundleInfoManager.FindAssetBundleInfo(path);
                AssetFileInfo   fileInfo        = new AssetFileInfo(path, settings, assetBundleInfo);

                //staticなアセットにあるなら、そこから
                file = StaticAssetManager.FindAssetFile(this, fileInfo, settingData);
                if (file == null)
                {
                    //カスタムロードなアセットにあるなら、そこから
                    file = CustomLoadManager.Find(this, fileInfo, settingData);
                    if (file == null)
                    {
                        //宴形式の通常ファイルロード
                        file = new AssetFileUtage(this, fileInfo, settingData);
                    }
                }
                fileTbl.Add(path, file);
            }
            return(file);
        }
Пример #2
0
        // 管理ファイルを追加
        AssetFileBase AddSub(string path, IAssetFileSettingData settingData)
        {
            //管理テーブルにあるなら、そこから
            string        path2 = GetPathChangedSoundExt(path);
            AssetFileBase file  = FindFromTbl(path, path2, settingData);

            if (file != null)
            {
                return(file);
            }

/*			if (path.Contains(" "))
 *                      {
 *                              Debug.LogWarning("[" + path + "] contains white space");
 *                      }
 */         AssetBundleInfo assetBundleInfo = FindAssetBundleInfo(path, path2);
            AssetFileInfo   fileInfo        = new AssetFileInfo(path, settings, assetBundleInfo);

            //staticなアセットにあるなら、そこから
            file = StaticAssetManager.FindAssetFile(this, fileInfo, settingData);
            if (file == null)
            {
                //カスタムロードなアセットにあるなら、そこから
                file = CustomLoadManager.Find(this, fileInfo, settingData);
                if (file == null)
                {
                    //宴形式の通常ファイルロード
                    file = new AssetFileUtage(this, fileInfo, settingData);
                }
            }
            fileTbl.Add(path, file);
            return(file);
        }
Пример #3
0
        // 管理ファイルを追加
        AssetFile AddSub(string path, StringGridRow rowData = null)
        {
            AssetFile file;

            //管理テーブルにあるなら、そこから
            if (!fileTbl.TryGetValue(path, out file))
            {
                if (path.Contains(" "))
                {
                    Debug.LogWarning("[" + path + "] contains white space");
                }

                //staticなアセットにあるなら、そこから
                file = StaticAssetManager.FindAssetFile(path, this.Settings, rowData);
                if (file == null)
                {
                    //カスタムロードなアセットにあるなら、そこから
                    file = CustomLoadManager.Find(path, this.Settings, rowData);
                    if (file == null)
                    {
                        //宴形式の通常ファイルロード
                        file = AssetFileUtageManager.CreateFile(path, Settings, rowData, ConvertFileListManager);
                    }
                }
                fileTbl.Add(path, file);
            }
            return(file);
        }
        private void Awake()
        {
            CustomLoadManager customLoadManager = AssetFileManager.GetCustomLoadManager();

            customLoadManager.OnFindAsset = (Utage.CustomLoadManager.FindAsset)Delegate.Combine(customLoadManager.OnFindAsset, new Utage.CustomLoadManager.FindAsset(this.FindAsset));
        }