Exemple #1
0
        /** 读取bundle配置 */
        private void readResourceInfoConfig()
        {
            string[][] re = ToolFileUtils.readFileForExcelFirstSheet(ShineToolGlobal.resourceInfoPath);

            _defaultSaveType       = int.Parse(re[0][1]);
            _signedResourceSaveDic = new SMap <string, int>();

            for (int i = 2; i < re.Length; i++)
            {
                _signedResourceSaveDic.put(re[i][0], int.Parse(re[i][1]));
            }
        }
Exemple #2
0
        private void readConfig()
        {
            // EditorUtility.DisplayProgressBar("请耐心等待","正在读取配置文件...",0.0f);

            long configTime = File.GetLastWriteTime(ShineToolGlobal.buildConfigPath).Ticks;

            if (_buildConfigs == null || _buildConfigFileTime != configTime)
            {
                _buildConfigFileTime = configTime;
                string[][] re = ToolFileUtils.readFileForExcelFirstSheet(ShineToolGlobal.buildConfigPath);

                _buildConfigs = new BuildConfig[re.Length - 1];

                for (int i = 1; i < re.Length; i++)
                {
                    BuildConfig config = new BuildConfig();
                    config.readConfig(re[i]);

                    _buildConfigs[i - 1] = config;
                }
            }

            EditorUtility.ClearProgressBar();
        }