public void LoadEngine() { if (!string.IsNullOrEmpty(startScenario)) { Engine.StartScenarioLabel = startScenario; } AssetFileManager.LoadInitFileList(new List <string>(), 0); //ADVエンジンの初期化を開始 if (string.IsNullOrEmpty(ResourceDir)) { Debug.LogError("Not set ResourceData", this); return; } Engine.BootFromExcel(excelPath, ResourceDir); if (isAutomaticPlay) { StartCoroutine(CoPlayEngine()); } }
public void LoadInitFileList(int version) { string dir = ResourceDir; bool useConvertFileList = ResourceLoadType == LoadType.Server ? useConvertFileListOnServer : useConvertFileListOnLocal; bool useAssetBundleFileList = ResourceLoadType == LoadType.Server ? useAssetBundleListOnServer : useAssetBundleListOnLocal; List <string> pathList = new List <string>(); if (useConvertFileList) { string path = FilePathUtil.Combine(dir, FilePathUtil.GetDirectoryNameOnly(ResourceDir + "/") + ExtensionUtil.ConvertFileList); pathList.Add(path); } if (useAssetBundleFileList) { string AssetBundleTarget = AssetBundleHelper.RuntimeAssetBundleTraget().ToString(); string assetBundlePath = FilePathUtil.Combine(AssetBundleTarget, AssetBundleTarget + ExtensionUtil.ConvertFileList); string path = FilePathUtil.Combine(dir, assetBundlePath); pathList.Add(path); } AssetFileManager.LoadInitFileList(pathList, version); }