export-table-pulgin-csharp 1.1.158 → 1.1.160

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -143,15 +143,15 @@ namespace ${exportNamespace}
143
143
  #if UNITY_EDITOR
144
144
  public static void LoadInEditor(bool force = false, System.Func<string, string> pathConverter = null)
145
145
  {
146
- if (Application.isPlaying && (!force))
146
+ if ((!force) && Application.isPlaying)
147
147
  {
148
148
  var tip = $"cannot load ${RowClass}[] with LoadInEditor at runtime";
149
149
  Debug.LogError(tip);
150
150
  throw new System.Exception(tip);
151
151
  }
152
152
  var loadUrl = pathConverter == null ? LoadUrl : pathConverter(LoadUrl);
153
- var configJson = System.IO.File.ReadAllText(loadUrl, System.Text.Encoding.UTF8);
154
- if (configJson != null)
153
+ var configLiteral = System.IO.File.ReadAllText(loadUrl, System.Text.Encoding.UTF8);
154
+ if (configLiteral != null)
155
155
  {
156
156
  var obj = new TempA()
157
157
  {
@@ -159,7 +159,7 @@ namespace ${exportNamespace}
159
159
  };
160
160
  try
161
161
  {
162
- // JsonUtility.FromJsonOverwrite("{\\"a\\":"+configJson+"}", obj);
162
+ // JsonUtility.FromJsonOverwrite("{\\"a\\":"+configLiteral+"}", obj);
163
163
  ConfigAssetLoader.LoadConfigs(configLiteral, Configs);
164
164
  }
165
165
  catch(System.Exception ex)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-table-pulgin-csharp",
3
- "version": "1.1.158",
3
+ "version": "1.1.160",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {},
@@ -143,15 +143,15 @@ namespace ${exportNamespace}
143
143
  #if UNITY_EDITOR
144
144
  public static void LoadInEditor(bool force = false, System.Func<string, string> pathConverter = null)
145
145
  {
146
- if (Application.isPlaying && (!force))
146
+ if ((!force) && Application.isPlaying)
147
147
  {
148
148
  var tip = $"cannot load ${RowClass}[] with LoadInEditor at runtime";
149
149
  Debug.LogError(tip);
150
150
  throw new System.Exception(tip);
151
151
  }
152
152
  var loadUrl = pathConverter == null ? LoadUrl : pathConverter(LoadUrl);
153
- var configJson = System.IO.File.ReadAllText(loadUrl, System.Text.Encoding.UTF8);
154
- if (configJson != null)
153
+ var configLiteral = System.IO.File.ReadAllText(loadUrl, System.Text.Encoding.UTF8);
154
+ if (configLiteral != null)
155
155
  {
156
156
  var obj = new TempA()
157
157
  {
@@ -159,7 +159,7 @@ namespace ${exportNamespace}
159
159
  };
160
160
  try
161
161
  {
162
- // JsonUtility.FromJsonOverwrite("{\\"a\\":"+configJson+"}", obj);
162
+ // JsonUtility.FromJsonOverwrite("{\\"a\\":"+configLiteral+"}", obj);
163
163
  ConfigAssetLoader.LoadConfigs(configLiteral, Configs);
164
164
  }
165
165
  catch(System.Exception ex)