fr.jeanf.eventsystem 0.1.5 → 0.1.6

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.
@@ -1,3 +1,4 @@
1
+ using System;
1
2
  using jeanf.EventSystem;
2
3
  using UnityEngine;
3
4
 
@@ -11,7 +12,14 @@ public class VoidEventSender : MonoBehaviour, IDebugBehaviour
11
12
  [SerializeField] private bool _isDebug = false;
12
13
 
13
14
  [field: Header("Broadcasting on:")] public VoidEventChannelSO voidMessageChannel;
14
-
15
+
16
+ [SerializeField] private bool sendEventOnAwake = true;
17
+
18
+ private void Awake()
19
+ {
20
+ if(sendEventOnAwake) SendVoidEvent();
21
+ }
22
+
15
23
  public void SendVoidEvent()
16
24
  {
17
25
  voidMessageChannel.RaiseEvent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"fr.jeanf.eventsystem",
3
- "version":"0.1.5",
3
+ "version":"0.1.6",
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",