Skip to content

Commit

Permalink
added bool float event channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Percevent13 committed Aug 27, 2024
1 parent 4e21ede commit 6debc07
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Runtime/ScriptableObjects/BoolFloatEventChannelSO.cs
Original file line number Diff line number Diff line change
@@ -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<bool, float> OnEventRaised;

public void RaiseEvent(bool boolean, float value)
{
OnEventRaised?.Invoke(boolean, value);
}
}
11 changes: 11 additions & 0 deletions Runtime/ScriptableObjects/BoolFloatEventChannelSO.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 6debc07

Please sign in to comment.