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.
Files changed (43) hide show
  1. package/Runtime/BaseClasses/IDebugBehaviour.cs +8 -0
  2. package/Runtime/BaseClasses/IDebugBehaviour.cs.meta +11 -0
  3. package/Runtime/BaseClasses/TeleportInformation.cs +29 -0
  4. package/Runtime/BaseClasses/TeleportInformation.cs.meta +11 -0
  5. package/Runtime/Listeners/BoolEventListener.cs +41 -0
  6. package/Runtime/Listeners/BoolEventListener.cs.meta +11 -0
  7. package/Runtime/Listeners/IntEventListener.cs +10 -11
  8. package/Runtime/Listeners/StringEventListener.cs +0 -6
  9. package/Runtime/Listeners/TeleportEventListener.cs +37 -0
  10. package/Runtime/Listeners/TeleportEventListener.cs.meta +11 -0
  11. package/Runtime/Listeners/VoidEventListener.cs +17 -7
  12. package/Runtime/ScriptableObjects/BoolEventChannelSO.cs +16 -0
  13. package/Runtime/ScriptableObjects/BoolEventChannelSO.cs.meta +11 -0
  14. package/Runtime/ScriptableObjects/TeleportEventChannelSO.cs +16 -0
  15. package/Runtime/ScriptableObjects/TeleportEventChannelSO.cs.meta +11 -0
  16. package/Runtime/ScriptableObjects/VoidEventChannelSO.cs +2 -2
  17. package/Runtime/Senders/EventSender.cs +4 -1
  18. package/Runtime/jeanf.eventSystem.asmdef +1 -1
  19. package/Samples/DefaultChannels/Bool Message Channel SO.asset +16 -0
  20. package/Samples/DefaultChannels/Bool Message Channel SO.asset.meta +8 -0
  21. package/Samples/DefaultChannels/Int Message Channel SO.asset +16 -0
  22. package/Samples/DefaultChannels/Int Message Channel SO.asset.meta +8 -0
  23. package/Samples/{Channels → DefaultChannels}/String Message Channel SO.asset +1 -1
  24. package/Samples/DefaultChannels/TeleportObject Message Channel SO.asset +16 -0
  25. package/Samples/DefaultChannels/TeleportObject Message Channel SO.asset.meta +8 -0
  26. package/Samples/DefaultChannels/TeleportPlayer Message Channel SO.asset +16 -0
  27. package/Samples/DefaultChannels/TeleportPlayer Message Channel SO.asset.meta +8 -0
  28. package/Samples/DefaultChannels/Void Message Channel SO.asset +16 -0
  29. package/Samples/DefaultChannels/Void Message Channel SO.asset.meta +8 -0
  30. package/Samples/PlayerChannels/HMDState Event Channel SO.asset +16 -0
  31. package/Samples/PlayerChannels/HMDState Event Channel SO.asset.meta +8 -0
  32. package/Samples/PlayerChannels/MainMenuState Event Channel SO.asset +16 -0
  33. package/Samples/PlayerChannels/MainMenuState Event Channel SO.asset.meta +8 -0
  34. package/Samples/PlayerChannels/MouseLookCameraReset Event Channel SO.asset +16 -0
  35. package/Samples/PlayerChannels/MouseLookCameraReset Event Channel SO.asset.meta +8 -0
  36. package/Samples/PlayerChannels/MouseLookState Event Channel SO.asset +16 -0
  37. package/Samples/PlayerChannels/MouseLookState Event Channel SO.asset.meta +8 -0
  38. package/Samples/PlayerChannels/PrimaryItemState Event Channel SO.asset +16 -0
  39. package/Samples/PlayerChannels/PrimaryItemState Event Channel SO.asset.meta +8 -0
  40. package/Samples/PlayerChannels.meta +8 -0
  41. package/package.json +9 -4
  42. /package/Samples/{Channels → DefaultChannels}/String Message Channel SO.asset.meta +0 -0
  43. /package/Samples/{Channels.meta → DefaultChannels.meta} +0 -0
@@ -0,0 +1,8 @@
1
+ using UnityEngine;
2
+ namespace jeanf.EventSystem
3
+ {
4
+ public interface IDebugBehaviour
5
+ {
6
+ bool isDebug { get; set; }
7
+ }
8
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 9e203e3dfc0fa3346a213b5d79819146
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -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,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 1f709c3c6b8401446a1e1171a9b39f77
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -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
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: b82296c84d82a944bb46a1a9ee14d056
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -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
- [SerializeField] private IntEventChannelSO _channel = default;
14
+ public IntEventChannelSO _channel = default;
21
15
 
22
- public IntEvent OnEventRaised;
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
- if (OnEventRaised != null)
39
- OnEventRaised.Invoke(value);
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
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 2d2c2c7896254d141b74d3d98daac446
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -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 VoidEventListener : MonoBehaviour
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
- if (OnEventRaised != null)
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,11 @@
1
+ fileFormatVersion: 2
2
+ guid: e0ed7a8546959a8479bb135ed3cf5fc1
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -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
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 1934f43c6c0f2644a91b0c2f8506674b
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,3 +1,4 @@
1
+ using System;
1
2
  using UnityEngine;
2
3
  using UnityEngine.Events;
3
4
 
@@ -10,8 +11,7 @@ namespace jeanf.EventSystem
10
11
 
11
12
  public void RaiseEvent()
12
13
  {
13
- if (OnEventRaised != null)
14
- OnEventRaised.Invoke();
14
+ OnEventRaised?.Invoke();
15
15
  }
16
16
  }
17
17
  }
@@ -5,7 +5,10 @@ namespace jeanf.EventSystem
5
5
  {
6
6
  public class EventSender : MonoBehaviour
7
7
  {
8
- [FormerlySerializedAs("_messageChannel")] [Header("Broadcasting on channels")]
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
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "uvs.events",
2
+ "name": "jeanf.eventsystem",
3
3
  "rootNamespace": "",
4
4
  "references": [],
5
5
  "includePlatforms": [],
@@ -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,8 @@
1
+ fileFormatVersion: 2
2
+ guid: a792e172a947c2642ba84b75cfd72630
3
+ NativeFormatImporter:
4
+ externalObjects: {}
5
+ mainObjectFileID: 11400000
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -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,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 1175546477ac3df4c9cd44d9a752719b
3
+ NativeFormatImporter:
4
+ externalObjects: {}
5
+ mainObjectFileID: 11400000
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -13,6 +13,6 @@ MonoBehaviour:
13
13
  m_Name: String Message Channel SO
14
14
  m_EditorClassIdentifier:
15
15
  _guid: a3f2d4caf87f6994092b3187963f8dc3
16
- description: 'Basic ipad message
16
+ description: '
17
17
 
18
18
  '
@@ -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,8 @@
1
+ fileFormatVersion: 2
2
+ guid: b1dffd642de0fac4a90d543373f549b3
3
+ NativeFormatImporter:
4
+ externalObjects: {}
5
+ mainObjectFileID: 11400000
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -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,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 1f4ebbe85b2889240aed9a09667b4d1c
3
+ NativeFormatImporter:
4
+ externalObjects: {}
5
+ mainObjectFileID: 11400000
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -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,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 631d9ecbf45fec74f979d8b3df0d2c5b
3
+ NativeFormatImporter:
4
+ externalObjects: {}
5
+ mainObjectFileID: 11400000
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -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,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 386d301c089a7c545adcdce484194ba9
3
+ NativeFormatImporter:
4
+ externalObjects: {}
5
+ mainObjectFileID: 11400000
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -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,8 @@
1
+ fileFormatVersion: 2
2
+ guid: ff0093fdb7d83c9449485ee73150fa72
3
+ NativeFormatImporter:
4
+ externalObjects: {}
5
+ mainObjectFileID: 11400000
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -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,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 869cdbdb9de48ea42aa65f9a90dbc1d4
3
+ NativeFormatImporter:
4
+ externalObjects: {}
5
+ mainObjectFileID: 11400000
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -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,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 12b53e1a3498ada41a3dcc8b4edd9b35
3
+ NativeFormatImporter:
4
+ externalObjects: {}
5
+ mainObjectFileID: 11400000
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -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:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: cce8767598dd925439339bf8bd4498e6
3
+ NativeFormatImporter:
4
+ externalObjects: {}
5
+ mainObjectFileID: 11400000
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 7d61446df31d4f347bedef6b29859ac1
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"fr.jeanf.eventsystem",
3
- "version":"0.0.1",
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 usefull default channels",
22
- "path": "Samples/Channels"
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