fr.jeanf.eventsystem 0.1.115 → 0.1.116

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.
@@ -29,6 +29,8 @@ namespace jeanf.EventSystem
29
29
 
30
30
  [SerializeField] private TimelineTriggerEventChannelSO _channel;
31
31
  [SerializeField] private PlayableDirector _playableDirectorToControl;
32
+ private PlayState _lastPlayableState;
33
+
32
34
  [Tooltip("Use this if you want to override the timeline assigned to the playable director.")]
33
35
  [SerializeField] private bool assignTimelineToPlayableDirector = true;
34
36
  [Space(10)]
@@ -40,15 +42,13 @@ namespace jeanf.EventSystem
40
42
 
41
43
  private void OnEnable()
42
44
  {
43
- if (_channel != null)
44
- _channel.OnEventRaised += Respond;
45
+ if (_channel != null) _channel.OnEventRaised += Respond;
45
46
  if (generalPauseEvent) generalPauseEvent.OnEventRaised += Pause;
46
47
  }
47
48
 
48
49
  private void OnDisable()
49
50
  {
50
- if (_channel != null)
51
- _channel.OnEventRaised -= Respond;
51
+ if (_channel != null) _channel.OnEventRaised -= Respond;
52
52
  if (generalPauseEvent) generalPauseEvent.OnEventRaised -= Pause;
53
53
  }
54
54
 
@@ -65,10 +65,11 @@ namespace jeanf.EventSystem
65
65
  {
66
66
  _playableDirectorToControl.Stop();
67
67
  }
68
+
69
+ _lastPlayableState = _playableDirectorToControl.state;
68
70
  if(isDebug) Debug.Log($" timeline-bool event raised: <{timeline},{value}>");
69
71
  }
70
72
 
71
- private PlayState _lastPlayableState;
72
73
  private void Pause(bool state)
73
74
  {
74
75
  switch (state)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fr.jeanf.eventsystem",
3
- "version": "0.1.115",
3
+ "version": "0.1.116",
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",