private void Save() { PlayerPref.SetData(RES_DECODE_DELL_ADDR, strDelladdr); PlayerPref.SetData(RES_DECODE_EXCEL_ADDR, strExcelAddr); if (IsSingleFile) { PlayerPref.SetData(RES_DECODE_RES_SINGLE_ADDR, strResAddr); } else { PlayerPref.SetData(RES_DECODE_RES_FOLDER_ADDR, strResAddr); } }
public void SelectJsonFile() { OpenFileDialog fileDialog = new OpenFileDialog(); string jsonPath = PlayerPref.GetData("JsonDecodePath"); if (jsonPath != null) { fileDialog.FileName = jsonPath; } fileDialog.Multiselect = false; fileDialog.Title = "请选择Json文件路径"; fileDialog.Filter = "Json文件 (*.json)|*.json|All文件 (*.*)|*.*"; if (fileDialog.ShowDialog() == DialogResult.OK) { PlayerPref.SetData("JsonDecodePath", fileDialog.FileName); JsonDecode(fileDialog.FileName); } }