private bool IsVideoType(AssetFileInfo fileInfo, IAssetFileSettingData settingData) { if (fileInfo.FileType != AssetFileType.UnityObject) { return(false); } if (settingData is AdvCommandSetting) { AdvCommandSetting setting = settingData as AdvCommandSetting; return(setting.Command is AdvCommandVideo); } AdvGraphicInfo info = settingData as AdvGraphicInfo; return((info != null) && (info.FileType == "Video")); }
public AdvLocalVideoFile(AdvVideoLoadPathChanger pathChanger, AssetFileManager assetFileManager, AssetFileInfo fileInfo, IAssetFileSettingData settingData) : base(assetFileManager, fileInfo, settingData) { fileInfo.StrageType = AssetFileStrageType.Resources; if (settingData is AdvCommandSetting) { AdvCommandSetting setting = settingData as AdvCommandSetting; string fileName = setting.Command.ParseCell <string>(AdvColumnName.Arg1); this.LoadPath = FilePathUtil.Combine(pathChanger.RootPath, fileName); } else { AdvGraphicInfo info = settingData as AdvGraphicInfo; string fileName = info.FileName; this.LoadPath = FilePathUtil.Combine(pathChanger.RootPath, fileName); } }