fr.jeanf.eventsystem 0.1.108 → 0.1.110

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.
@@ -8,7 +8,7 @@ using UnityEngine.Serialization;
8
8
  /// </summary>
9
9
  namespace jeanf.EventSystem
10
10
  {
11
- [System.Serializable]
11
+ [System.Serializable, DefaultExecutionOrder(-1)]
12
12
  public class TimelineBoolEvent : UnityEvent<PlayableAsset, bool>
13
13
  {
14
14
 
@@ -37,7 +37,8 @@ namespace jeanf.EventSystem
37
37
 
38
38
  private void OnEnable()
39
39
  {
40
- if (_channel != null)
40
+ Debug.Log("Played Timeline's enable");
41
+ if (_channel != null)
41
42
  _channel.OnEventRaised += Respond;
42
43
  }
43
44
 
@@ -49,7 +50,6 @@ namespace jeanf.EventSystem
49
50
 
50
51
  private void Respond(PlayableAsset timeline, bool value)
51
52
  {
52
- Debug.Log("STARTING TIMELINE: " + timeline.name);
53
53
  if (assignTimelineToPlayableDirector) _playableDirectorToControl.playableAsset = timeline;
54
54
  if(timeline != _playableDirectorToControl.playableAsset) return;
55
55
  OnEventRaised?.Invoke(timeline, value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fr.jeanf.eventsystem",
3
- "version": "0.1.108",
3
+ "version": "0.1.110",
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",