fr.jeanf.eventsystem 0.1.64 → 0.1.66

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.
@@ -7,7 +7,7 @@ using UnityEngine.Events;
7
7
  /// </summary>
8
8
  namespace jeanf.EventSystem
9
9
  {
10
- [CreateAssetMenu(menuName = "Events/Int Event Channel")]
10
+ [CreateAssetMenu(menuName = "Events/Float Event Channel")]
11
11
  public class FloatEventChannelSO : DescriptionBaseSO
12
12
  {
13
13
  public UnityAction<float> OnEventRaised;
@@ -0,0 +1,19 @@
1
+ using jeanf.EventSystem;
2
+ using UnityEngine;
3
+
4
+ public class IntEventSender : MonoBehaviour, IDebugBehaviour
5
+ {
6
+ public bool isDebug
7
+ {
8
+ get => _isDebug;
9
+ set => _isDebug = value;
10
+ }
11
+ [SerializeField] private bool _isDebug = false;
12
+
13
+ [field: Header("Broadcasting on:")] public IntEventChannelSO intMessageChannel;
14
+
15
+ public void SendInt(int value)
16
+ {
17
+ intMessageChannel.RaiseEvent(value);
18
+ }
19
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: fcb9eb5af08078243a842c18f70cf15c
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"fr.jeanf.eventsystem",
3
- "version":"0.1.64",
3
+ "version":"0.1.66",
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",