fr.jeanf.eventsystem 0.0.1 → 0.0.2
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/BaseClasses/IDebugBehaviour.cs +8 -0
- package/Runtime/BaseClasses/IDebugBehaviour.cs.meta +11 -0
- package/Runtime/BaseClasses/TeleportInformation.cs +29 -0
- package/Runtime/BaseClasses/TeleportInformation.cs.meta +11 -0
- package/Runtime/Listeners/BoolEventListener.cs +41 -0
- package/Runtime/Listeners/BoolEventListener.cs.meta +11 -0
- package/Runtime/Listeners/IntEventListener.cs +10 -11
- package/Runtime/Listeners/StringEventListener.cs +0 -6
- package/Runtime/Listeners/TeleportEventListener.cs +37 -0
- package/Runtime/Listeners/TeleportEventListener.cs.meta +11 -0
- package/Runtime/Listeners/VoidEventListener.cs +17 -7
- package/Runtime/ScriptableObjects/BoolEventChannelSO.cs +16 -0
- package/Runtime/ScriptableObjects/BoolEventChannelSO.cs.meta +11 -0
- package/Runtime/ScriptableObjects/TeleportEventChannelSO.cs +16 -0
- package/Runtime/ScriptableObjects/TeleportEventChannelSO.cs.meta +11 -0
- package/Runtime/ScriptableObjects/VoidEventChannelSO.cs +2 -2
- package/Runtime/Senders/EventSender.cs +4 -1
- package/Runtime/jeanf.eventSystem.asmdef +1 -1
- package/Samples/DefaultChannels/Bool Message Channel SO.asset +16 -0
- package/Samples/DefaultChannels/Bool Message Channel SO.asset.meta +8 -0
- package/Samples/DefaultChannels/Int Message Channel SO.asset +16 -0
- package/Samples/DefaultChannels/Int Message Channel SO.asset.meta +8 -0
- package/Samples/{Channels → DefaultChannels}/String Message Channel SO.asset +1 -1
- package/Samples/DefaultChannels/TeleportObject Message Channel SO.asset +16 -0
- package/Samples/DefaultChannels/TeleportObject Message Channel SO.asset.meta +8 -0
- package/Samples/DefaultChannels/TeleportPlayer Message Channel SO.asset +16 -0
- package/Samples/DefaultChannels/TeleportPlayer Message Channel SO.asset.meta +8 -0
- package/Samples/DefaultChannels/Void Message Channel SO.asset +16 -0
- package/Samples/DefaultChannels/Void Message Channel SO.asset.meta +8 -0
- package/Samples/PlayerChannels/HMDState Event Channel SO.asset +16 -0
- package/Samples/PlayerChannels/HMDState Event Channel SO.asset.meta +8 -0
- package/Samples/PlayerChannels/MainMenuState Event Channel SO.asset +16 -0
- package/Samples/PlayerChannels/MainMenuState Event Channel SO.asset.meta +8 -0
- package/Samples/PlayerChannels/MouseLookCameraReset Event Channel SO.asset +16 -0
- package/Samples/PlayerChannels/MouseLookCameraReset Event Channel SO.asset.meta +8 -0
- package/Samples/PlayerChannels/MouseLookState Event Channel SO.asset +16 -0
- package/Samples/PlayerChannels/MouseLookState Event Channel SO.asset.meta +8 -0
- package/Samples/PlayerChannels/PrimaryItemState Event Channel SO.asset +16 -0
- package/Samples/PlayerChannels/PrimaryItemState Event Channel SO.asset.meta +8 -0
- package/Samples/PlayerChannels.meta +8 -0
- package/package.json +9 -4
- /package/Samples/{Channels → DefaultChannels}/String Message Channel SO.asset.meta +0 -0
- /package/Samples/{Channels.meta → DefaultChannels.meta} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
using System.Collections;
|
|
2
|
+
using System.Collections.Generic;
|
|
3
|
+
using UnityEngine;
|
|
4
|
+
|
|
5
|
+
namespace jeanf.EventSystem
|
|
6
|
+
{
|
|
7
|
+
public class TeleportInformation
|
|
8
|
+
{
|
|
9
|
+
public bool objectIsPlayer;
|
|
10
|
+
public Transform objectToTeleport;
|
|
11
|
+
public Transform targetDestination;
|
|
12
|
+
public bool alignToTarget;
|
|
13
|
+
|
|
14
|
+
public TeleportInformation(Transform targetDestination, bool alignToTarget)
|
|
15
|
+
{
|
|
16
|
+
this.targetDestination = targetDestination;
|
|
17
|
+
this.alignToTarget = alignToTarget;
|
|
18
|
+
this.objectIsPlayer = true;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
public TeleportInformation(Transform objectToTeleport, Transform targetDestination, bool alignToTarget, bool objectIsPlayer)
|
|
22
|
+
{
|
|
23
|
+
this.objectToTeleport = objectToTeleport;
|
|
24
|
+
this.targetDestination = targetDestination;
|
|
25
|
+
this.alignToTarget = alignToTarget;
|
|
26
|
+
this.objectIsPlayer = objectIsPlayer;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
using UnityEngine;
|
|
2
|
+
using UnityEngine.Events;
|
|
3
|
+
|
|
4
|
+
/// <summary>
|
|
5
|
+
/// To use a generic UnityEvent type you must override the generic type.
|
|
6
|
+
/// </summary>
|
|
7
|
+
namespace jeanf.EventSystem
|
|
8
|
+
{
|
|
9
|
+
[System.Serializable]
|
|
10
|
+
public class BoolEvent : UnityEvent<bool>
|
|
11
|
+
{
|
|
12
|
+
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/// <summary>
|
|
16
|
+
/// A flexible handler for int events in the form of a MonoBehaviour. Responses can be connected directly from the Unity Inspector.
|
|
17
|
+
/// </summary>
|
|
18
|
+
public class BoolEventListener : MonoBehaviour
|
|
19
|
+
{
|
|
20
|
+
[SerializeField] private BoolEventChannelSO _channel = default;
|
|
21
|
+
|
|
22
|
+
public BoolEvent OnEventRaised;
|
|
23
|
+
|
|
24
|
+
private void OnEnable()
|
|
25
|
+
{
|
|
26
|
+
if (_channel != null)
|
|
27
|
+
_channel.OnEventRaised += Respond;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
private void OnDisable()
|
|
31
|
+
{
|
|
32
|
+
if (_channel != null)
|
|
33
|
+
_channel.OnEventRaised -= Respond;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
private void Respond(bool value)
|
|
37
|
+
{
|
|
38
|
+
OnEventRaised?.Invoke(value);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
using UnityEngine;
|
|
2
2
|
using UnityEngine.Events;
|
|
3
3
|
|
|
4
|
-
/// <summary>
|
|
5
|
-
/// To use a generic UnityEvent type you must override the generic type.
|
|
6
|
-
/// </summary>
|
|
7
4
|
namespace jeanf.EventSystem
|
|
8
5
|
{
|
|
9
6
|
[System.Serializable]
|
|
@@ -11,15 +8,12 @@ namespace jeanf.EventSystem
|
|
|
11
8
|
{
|
|
12
9
|
|
|
13
10
|
}
|
|
14
|
-
|
|
15
|
-
/// <summary>
|
|
16
|
-
/// A flexible handler for int events in the form of a MonoBehaviour. Responses can be connected directly from the Unity Inspector.
|
|
17
|
-
/// </summary>
|
|
11
|
+
|
|
18
12
|
public class IntEventListener : MonoBehaviour
|
|
19
13
|
{
|
|
20
|
-
|
|
14
|
+
public IntEventChannelSO _channel = default;
|
|
21
15
|
|
|
22
|
-
public IntEvent
|
|
16
|
+
public IntEvent OnIntEventRaised;
|
|
23
17
|
|
|
24
18
|
private void OnEnable()
|
|
25
19
|
{
|
|
@@ -35,8 +29,13 @@ namespace jeanf.EventSystem
|
|
|
35
29
|
|
|
36
30
|
private void Respond(int value)
|
|
37
31
|
{
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
OnIntEventRaised?.Invoke(value);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public IntEventListener(IntEventChannelSO _channel, IntEvent OnIntEventRaised)
|
|
36
|
+
{
|
|
37
|
+
this._channel = _channel;
|
|
38
|
+
this.OnIntEventRaised = OnIntEventRaised;
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
41
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
using UnityEngine;
|
|
2
2
|
using UnityEngine.Events;
|
|
3
3
|
|
|
4
|
-
/// <summary>
|
|
5
|
-
/// To use a generic UnityEvent type you must override the generic type.
|
|
6
|
-
/// </summary>
|
|
7
4
|
namespace jeanf.EventSystem
|
|
8
5
|
{
|
|
9
6
|
[System.Serializable]
|
|
@@ -12,9 +9,6 @@ namespace jeanf.EventSystem
|
|
|
12
9
|
|
|
13
10
|
}
|
|
14
11
|
|
|
15
|
-
/// <summary>
|
|
16
|
-
/// A flexible handler for int events in the form of a MonoBehaviour. Responses can be connected directly from the Unity Inspector.
|
|
17
|
-
/// </summary>
|
|
18
12
|
public class StringEventListener : MonoBehaviour
|
|
19
13
|
{
|
|
20
14
|
[SerializeField] private StringEventChannelSO _channel = default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
using System;
|
|
2
|
+
using UnityEngine;
|
|
3
|
+
using UnityEngine.Events;
|
|
4
|
+
|
|
5
|
+
namespace jeanf.EventSystem
|
|
6
|
+
{
|
|
7
|
+
[System.Serializable]
|
|
8
|
+
public class TeleportEvent : UnityEvent<TeleportInformation>
|
|
9
|
+
{
|
|
10
|
+
|
|
11
|
+
}
|
|
12
|
+
public class TeleportEventListener : MonoBehaviour
|
|
13
|
+
{
|
|
14
|
+
[Header("Receiving on channel:")]
|
|
15
|
+
[SerializeField] private TeleportEventChannelSO _channel = default;
|
|
16
|
+
|
|
17
|
+
public UnityEvent<TeleportInformation> OnEventRaised;
|
|
18
|
+
|
|
19
|
+
private void OnEnable()
|
|
20
|
+
{
|
|
21
|
+
if (_channel != null)
|
|
22
|
+
_channel.OnEventRaised += Respond;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
private void OnDisable()
|
|
26
|
+
{
|
|
27
|
+
if (_channel != null)
|
|
28
|
+
_channel.OnEventRaised -= Respond;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
private void Respond( TeleportInformation teleportInformation)
|
|
32
|
+
{
|
|
33
|
+
OnEventRaised?.Invoke(teleportInformation);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
+
using System;
|
|
1
2
|
using UnityEngine;
|
|
2
3
|
using UnityEngine.Events;
|
|
3
4
|
|
|
4
|
-
/// <summary>
|
|
5
|
-
/// A flexible handler for void events in the form of a MonoBehaviour. Responses can be connected directly from the Unity Inspector.
|
|
6
|
-
/// </summary>namespace jeanf.EventSystemnamespace jeanf.EventSystem
|
|
7
5
|
namespace jeanf.EventSystem
|
|
8
|
-
{
|
|
9
|
-
public class
|
|
6
|
+
{[System.Serializable]
|
|
7
|
+
public class VoidEvent : UnityEvent<object>
|
|
10
8
|
{
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
public class VoidEventListener : MonoBehaviour, IDebugBehaviour
|
|
12
|
+
{
|
|
13
|
+
public bool isDebug
|
|
14
|
+
{
|
|
15
|
+
get => _isDebug;
|
|
16
|
+
set => _isDebug = value;
|
|
17
|
+
}
|
|
18
|
+
[SerializeField] private bool _isDebug = false;
|
|
19
|
+
|
|
11
20
|
[SerializeField] private VoidEventChannelSO _channel = default;
|
|
12
21
|
|
|
13
22
|
public UnityEvent OnEventRaised;
|
|
@@ -16,6 +25,7 @@ namespace jeanf.EventSystem
|
|
|
16
25
|
{
|
|
17
26
|
if (_channel != null)
|
|
18
27
|
_channel.OnEventRaised += Respond;
|
|
28
|
+
if(_isDebug) Debug.Log($"received event on channel {_channel.name}.");
|
|
19
29
|
}
|
|
20
30
|
|
|
21
31
|
private void OnDisable()
|
|
@@ -26,8 +36,8 @@ namespace jeanf.EventSystem
|
|
|
26
36
|
|
|
27
37
|
private void Respond()
|
|
28
38
|
{
|
|
29
|
-
|
|
30
|
-
OnEventRaised.Invoke();
|
|
39
|
+
OnEventRaised?.Invoke();
|
|
31
40
|
}
|
|
41
|
+
|
|
32
42
|
}
|
|
33
43
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
using UnityEngine;
|
|
2
|
+
using UnityEngine.Events;
|
|
3
|
+
|
|
4
|
+
namespace jeanf.EventSystem
|
|
5
|
+
{
|
|
6
|
+
[CreateAssetMenu(menuName = "Events/Bool Event Channel")]
|
|
7
|
+
public class BoolEventChannelSO : DescriptionBaseSO
|
|
8
|
+
{
|
|
9
|
+
public UnityAction<bool> OnEventRaised;
|
|
10
|
+
|
|
11
|
+
public void RaiseEvent(bool value)
|
|
12
|
+
{
|
|
13
|
+
OnEventRaised?.Invoke(value);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
using UnityEngine;
|
|
2
|
+
using UnityEngine.Events;
|
|
3
|
+
|
|
4
|
+
namespace jeanf.EventSystem
|
|
5
|
+
{
|
|
6
|
+
[CreateAssetMenu(menuName = "Events/Teleport Event Channel")]
|
|
7
|
+
public class TeleportEventChannelSO : DescriptionBaseSO
|
|
8
|
+
{
|
|
9
|
+
public UnityAction<TeleportInformation> OnEventRaised;
|
|
10
|
+
|
|
11
|
+
public void RaiseEvent(TeleportInformation value)
|
|
12
|
+
{
|
|
13
|
+
OnEventRaised?.Invoke(value);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -5,7 +5,10 @@ namespace jeanf.EventSystem
|
|
|
5
5
|
{
|
|
6
6
|
public class EventSender : MonoBehaviour
|
|
7
7
|
{
|
|
8
|
-
[
|
|
8
|
+
[Header("Broadcasting on channels")]
|
|
9
9
|
public StringEventChannelSO _stringMessageChannel;
|
|
10
|
+
public BoolEventChannelSO _boolMessageChannel;
|
|
11
|
+
public IntEventChannelSO _intMessageChannel;
|
|
12
|
+
public VoidEventChannelSO _voidMessageChannel;
|
|
10
13
|
}
|
|
11
14
|
}
|
|
@@ -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: Bool Message 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: 915737b55ba9fa344b3172aac9107aea, type: 3}
|
|
13
|
+
m_Name: Int Message 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: 1934f43c6c0f2644a91b0c2f8506674b, type: 3}
|
|
13
|
+
m_Name: TeleportObject Message 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: 1934f43c6c0f2644a91b0c2f8506674b, type: 3}
|
|
13
|
+
m_Name: TeleportPlayer Message 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: d84ad29ba75bd634eb5eda8abf406faf, type: 3}
|
|
13
|
+
m_Name: Void Message 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: HMDState 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: MainMenuState 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: d84ad29ba75bd634eb5eda8abf406faf, type: 3}
|
|
13
|
+
m_Name: MouseLookCameraReset 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: MouseLookState 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: PrimaryItemState Event Channel SO
|
|
14
|
+
m_EditorClassIdentifier:
|
|
15
|
+
_guid:
|
|
16
|
+
description:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name":"fr.jeanf.eventsystem",
|
|
3
|
-
"version":"0.0.
|
|
3
|
+
"version":"0.0.2",
|
|
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",
|
|
@@ -17,9 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"samples": [
|
|
19
19
|
{
|
|
20
|
-
"displayName": "Channels",
|
|
21
|
-
"description": "A set of
|
|
22
|
-
"path": "Samples/
|
|
20
|
+
"displayName": "Default Channels",
|
|
21
|
+
"description": "A set of useful default channels",
|
|
22
|
+
"path": "Samples/DefaultChannels"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"displayName": "Player Channels",
|
|
26
|
+
"description": "A set of channels used for the vr_player package",
|
|
27
|
+
"path": "Samples/PlayerChannels"
|
|
23
28
|
}
|
|
24
29
|
]
|
|
25
30
|
}
|
|
File without changes
|
|
File without changes
|