Exemple #1
0
        public static Dictionary <string, ExcelWorksheet> ReadAllExcelConfigs(bool showDialog)
        {
            var ExcelSheets = ExcelTranslatorUtility.ReadALLExcelSheets(ExcelFloder, (excelName, prog) =>
            {
                if (showDialog)
                {
                    string content = string.Format("读取Excel:【{0}】 ...", excelName);
                    EditorUtility.DisplayProgressBar("读取配置表", content, 1f * prog);
                }
            });

            if (showDialog)
            {
                EditorUtility.ClearProgressBar();
            }
            return(ExcelSheets);
        }