diff --git a/Runtime/ScriptableObjects/BoolFloatEventChannelSO.cs b/Runtime/ScriptableObjects/BoolFloatEventChannelSO.cs new file mode 100644 index 0000000..e9e0576 --- /dev/null +++ b/Runtime/ScriptableObjects/BoolFloatEventChannelSO.cs @@ -0,0 +1,16 @@ +using jeanf.EventSystem; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.Events; + +[CreateAssetMenu(menuName = "Events/Bool Float Event Channel")] +public class BoolFloatEventChannelSO : DescriptionBaseSO, RaiseEvent +{ + public UnityAction OnEventRaised; + + public void RaiseEvent(bool boolean, float value) + { + OnEventRaised?.Invoke(boolean, value); + } +} diff --git a/Runtime/ScriptableObjects/BoolFloatEventChannelSO.cs.meta b/Runtime/ScriptableObjects/BoolFloatEventChannelSO.cs.meta new file mode 100644 index 0000000..86e92dc --- /dev/null +++ b/Runtime/ScriptableObjects/BoolFloatEventChannelSO.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cde442c4cd5b131498a9de37dcd6f41d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/package.json b/package.json index adc5f50..75f969a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fr.jeanf.eventsystem", - "version": "0.1.112", + "version": "0.1.113", "displayName": "Event System", "description": "This package contains a basic Event System based on Scriptable Objects as communication medium", "unity": "2021.3",