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

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.
@@ -26,7 +26,12 @@
26
26
 
27
27
  private void Update()
28
28
  {
29
- if (_lastHandled == _spriteRenderer.sprite)
29
+ if (_spriteRenderer != null && _lastHandled == _spriteRenderer.sprite)
30
+ {
31
+ return;
32
+ }
33
+
34
+ if (_image != null && _lastHandled == _image.sprite)
30
35
  {
31
36
  return;
32
37
  }
@@ -34,7 +39,6 @@
34
39
  OnValidate();
35
40
  }
36
41
 
37
- // Visible for testing
38
42
  public void OnValidate()
39
43
  {
40
44
  Sprite sprite;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.wallstop-studios.unity-helpers",
3
- "version": "1.0.1-rc08",
3
+ "version": "1.0.1-rc09",
4
4
  "displayName": "Unity Helpers",
5
5
  "description": "Various Unity Helper Library",
6
6
  "dependencies": {