com.wallstop-studios.unity-helpers 1.0.1-rc09 → 1.0.1-rc10

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.
@@ -129,7 +129,7 @@ namespace UnityHelpers.Core.Extension
129
129
  }
130
130
  if (Equals(Thread.CurrentThread, UnityMainThread))
131
131
  {
132
- Debug.Log(Wrap(component, string.Format(message, args), e));
132
+ Debug.Log(Wrap(component, args.Length != 0 ? string.Format(message, args) : message, e));
133
133
  }
134
134
  #endif
135
135
  }
@@ -145,7 +145,7 @@ namespace UnityHelpers.Core.Extension
145
145
  }
146
146
  if (Equals(Thread.CurrentThread, UnityMainThread))
147
147
  {
148
- Debug.LogWarning(Wrap(component, string.Format(message, args), e));
148
+ Debug.LogWarning(Wrap(component, args.Length != 0 ? string.Format(message, args) : message, e));
149
149
  }
150
150
  #endif
151
151
  }
@@ -161,7 +161,7 @@ namespace UnityHelpers.Core.Extension
161
161
  }
162
162
  if (Equals(Thread.CurrentThread, UnityMainThread))
163
163
  {
164
- Debug.LogError(Wrap(component, string.Format(message, args), e));
164
+ Debug.LogError(Wrap(component, args.Length != 0 ? string.Format(message, args) : message, e));
165
165
  }
166
166
  #endif
167
167
  }
@@ -181,7 +181,7 @@ namespace UnityHelpers.Core.Extension
181
181
  }
182
182
  }
183
183
 
184
- string prepend = string.Format("{0}|{2}[{1}]|", now, componentType, gameObjectName);
184
+ string prepend = $"{now}|{gameObjectName}[{componentType}]|";
185
185
  if (e != null)
186
186
  {
187
187
  return prepend + message + "\n " + e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.wallstop-studios.unity-helpers",
3
- "version": "1.0.1-rc09",
3
+ "version": "1.0.1-rc10",
4
4
  "displayName": "Unity Helpers",
5
5
  "description": "Various Unity Helper Library",
6
6
  "dependencies": {