void LoadBuildData()
 {
     if (!FileUtility.CheckFileExists(Application.streamingAssetsPath + "/" + BuildInfoManager.fileName))
     {
         FileUtility.WriteFile(Application.streamingAssetsPath + "/" + BuildInfoManager.fileName, JsonUtility.ConvertToJson(BuildInfo.DefaultValues, Formatting.Indented));
         AssetDatabase.Refresh(ImportAssetOptions.ForceSynchronousImport);
     }
     _buildInfo = JsonUtility.ConvertJsonToObject <BuildInfo>(FileUtility.ReadFile(Application.streamingAssetsPath + "/" + BuildInfoManager.fileName));
 }
 private void LoadAllConfigurationFiles()
 {
     penseCreConfiguration = JsonUtility.ConvertJsonToObject <Configuration>(LoadConfigurationFile(_penseCreConfigPath, _penseCreConfigFile));
     Debug.Log("[ConfigurationManager] - Loaded All Configuration Files");
 }
        private void WriteBuildInfo(bool release)
        {
            BuildInfo currentBuildInfo = new BuildInfo
            {
                CompanyName     = _buildInfo.CompanyName,
                ApplicationName = _buildInfo.ApplicationName,
                MajorVersion    = _buildInfo.MajorVersion,
                MinorVersion    = _buildInfo.MinorVersion,
                PatchVersion    = _buildInfo.PatchVersion,
                BuildVersion    = _buildInfo.BuildVersion,
                BuildNotes      = _buildInfo.BuildNotes,
                BuildDateTime   = CurrentDateString,
                Release         = release
            };

            _buildInfo = currentBuildInfo;

            FileUtility.WriteFile(Application.streamingAssetsPath + "/" + BuildInfoManager.fileName, JsonUtility.ConvertToJson(currentBuildInfo, Formatting.Indented));
            AssetDatabase.Refresh(ImportAssetOptions.ForceSynchronousImport);
        }