fr.jeanf.eventsystem 0.1.77 → 0.1.78
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.
- package/Runtime/Listeners/BoolEventListener.cs +2 -0
- package/Samples/PlayerChannels/PokeEvent.asset +16 -0
- package/Samples/PlayerChannels/PokeEvent.asset.meta +8 -0
- package/Samples/PlayerChannels/TeleportationState.asset +16 -0
- package/Samples/PlayerChannels/TeleportationState.asset.meta +8 -0
- package/package.json +2 -2
|
@@ -25,6 +25,7 @@ namespace jeanf.EventSystem
|
|
|
25
25
|
[SerializeField] private bool _isDebug = false;
|
|
26
26
|
|
|
27
27
|
[SerializeField] private BoolEventChannelSO _channel = default;
|
|
28
|
+
[SerializeField] private bool invertIncomingValue = false;
|
|
28
29
|
|
|
29
30
|
public BoolEvent OnEventRaised;
|
|
30
31
|
|
|
@@ -42,6 +43,7 @@ namespace jeanf.EventSystem
|
|
|
42
43
|
|
|
43
44
|
private void Respond(bool value)
|
|
44
45
|
{
|
|
46
|
+
if (invertIncomingValue) value = !value;
|
|
45
47
|
OnEventRaised?.Invoke(value);
|
|
46
48
|
if(isDebug) Debug.Log($" bool event raised: {value}");
|
|
47
49
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
%TAG !u! tag:unity3d.com,2011:
|
|
3
|
+
--- !u!114 &11400000
|
|
4
|
+
MonoBehaviour:
|
|
5
|
+
m_ObjectHideFlags: 0
|
|
6
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
7
|
+
m_PrefabInstance: {fileID: 0}
|
|
8
|
+
m_PrefabAsset: {fileID: 0}
|
|
9
|
+
m_GameObject: {fileID: 0}
|
|
10
|
+
m_Enabled: 1
|
|
11
|
+
m_EditorHideFlags: 0
|
|
12
|
+
m_Script: {fileID: 11500000, guid: ad082b8ba1f184e40b683b8289db4f24, type: 3}
|
|
13
|
+
m_Name: PokeEvent
|
|
14
|
+
m_EditorClassIdentifier:
|
|
15
|
+
_guid:
|
|
16
|
+
description:
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
%TAG !u! tag:unity3d.com,2011:
|
|
3
|
+
--- !u!114 &11400000
|
|
4
|
+
MonoBehaviour:
|
|
5
|
+
m_ObjectHideFlags: 0
|
|
6
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
7
|
+
m_PrefabInstance: {fileID: 0}
|
|
8
|
+
m_PrefabAsset: {fileID: 0}
|
|
9
|
+
m_GameObject: {fileID: 0}
|
|
10
|
+
m_Enabled: 1
|
|
11
|
+
m_EditorHideFlags: 0
|
|
12
|
+
m_Script: {fileID: 11500000, guid: e0ed7a8546959a8479bb135ed3cf5fc1, type: 3}
|
|
13
|
+
m_Name: TeleportationState
|
|
14
|
+
m_EditorClassIdentifier:
|
|
15
|
+
_guid:
|
|
16
|
+
description:
|
package/package.json
CHANGED