fr.jeanf.eventsystem 0.1.5 → 0.1.61
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/SenderInterfaces/VoidEventSender.cs +9 -1
- package/Samples/PlayerChannels/Grab/GrabCount Event Channel SO.asset +16 -0
- package/Samples/PlayerChannels/Grab/GrabCount Event Channel SO.asset.meta +8 -0
- package/Samples/PlayerChannels/Grab/GrabEvent_LeftHandState.asset +16 -0
- package/Samples/PlayerChannels/Grab/GrabEvent_LeftHandState.asset.meta +8 -0
- package/Samples/PlayerChannels/Grab/GrabEvent_RightHandState.asset +16 -0
- package/Samples/PlayerChannels/Grab/GrabEvent_RightHandState.asset.meta +8 -0
- package/Samples/PlayerChannels/Grab/Grab_LeftHand_SetAttachTransform.asset +16 -0
- package/Samples/PlayerChannels/Grab/Grab_RightHand_SetAttachTransform.asset +16 -0
- package/Samples/PlayerChannels/Grab.meta +8 -0
- package/Samples/PlayerChannels/{Grab_LeftHand.asset → PoseEvent/HandDetectedEvent.asset} +1 -1
- package/Samples/PlayerChannels/PoseEvent/HandDetectedEvent.asset.meta +8 -0
- package/Samples/PlayerChannels/{Grab_RightHand.asset → PoseEvent/HandDisapearedEvent.asset} +1 -1
- package/Samples/PlayerChannels/PoseEvent/HandDisapearedEvent.asset.meta +8 -0
- package/Samples/PlayerChannels/PoseEvent/LeftHandIsPointingEventChannel SO.asset +16 -0
- package/Samples/PlayerChannels/PoseEvent/LeftHandIsPointingEventChannel SO.asset.meta +8 -0
- package/Samples/PlayerChannels/PoseEvent/RightHandIsPointingEventChannel SO.asset +16 -0
- package/Samples/PlayerChannels/PoseEvent/RightHandIsPointingEventChannel SO.asset.meta +8 -0
- package/Samples/PlayerChannels/PoseEvent.meta +8 -0
- package/package.json +1 -1
- /package/Samples/PlayerChannels/{Grab_LeftHand.asset.meta → Grab/Grab_LeftHand_SetAttachTransform.asset.meta} +0 -0
- /package/Samples/PlayerChannels/{Grab_RightHand.asset.meta → Grab/Grab_RightHand_SetAttachTransform.asset.meta} +0 -0
|
@@ -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();
|
|
@@ -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: 915737b55ba9fa344b3172aac9107aea, type: 3}
|
|
13
|
+
m_Name: GrabCount Event Channel SO
|
|
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: GrabEvent_LeftHandState
|
|
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: GrabEvent_RightHandState
|
|
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: d84ad29ba75bd634eb5eda8abf406faf, type: 3}
|
|
13
|
+
m_Name: Grab_LeftHand_SetAttachTransform
|
|
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: d84ad29ba75bd634eb5eda8abf406faf, type: 3}
|
|
13
|
+
m_Name: Grab_RightHand_SetAttachTransform
|
|
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: LeftHandIsPointingEventChannel SO
|
|
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: RightHandIsPointingEventChannel SO
|
|
14
|
+
m_EditorClassIdentifier:
|
|
15
|
+
_guid:
|
|
16
|
+
description:
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|