Exemplo n.º 1
0
        static void ProcessSheet(string path)
        {
            try
            {
                GDEExcelDataHelper excelDataHelper = new GDEExcelDataHelper(path);
                excelDataHelper.OnUpdateProgress += delegate(string title, string msg, float progress) {
                    EditorUtility.DisplayProgressBar(title, msg, progress);
                };

                excelDataHelper.ProcessSheet();

                GDEItemManager.ClearCaches();
            }
            catch (Exception ex)
            {
                Debug.LogError(ex);
            }
            finally
            {
                EditorUtility.ClearProgressBar();
            }
        }