fr.jeanf.eventsystem 0.1.123 → 0.1.124

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.
@@ -22,6 +22,13 @@ namespace jeanf.EventSystem
22
22
 
23
23
  public void SendVoidEvent()
24
24
  {
25
+ if (voidMessageChannel == null)
26
+ {
27
+ Debug.LogError($"[VoidEventSender] Missing voidMessageChannel reference on GameObject: {gameObject.name}. " +
28
+ $"Please assign a VoidEventChannelSO to this component.", this);
29
+ return;
30
+ }
31
+
25
32
  voidMessageChannel.RaiseEvent();
26
33
  }
27
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fr.jeanf.eventsystem",
3
- "version": "0.1.123",
3
+ "version": "0.1.124",
4
4
  "displayName": "Event System",
5
5
  "description": "This package contains a basic Event System based on Scriptable Objects as communication medium",
6
6
  "unity": "2021.3",