fr.jeanf.questsystem 0.0.10 → 0.0.12

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.
@@ -5,7 +5,7 @@ using UnityEngine.Playables;
5
5
 
6
6
  namespace jeanf.questsystem
7
7
  {
8
- public abstract class QuestStep : MonoBehaviour
8
+ public abstract class QuestStep : MonoBehaviour, IDebugBehaviour
9
9
  {
10
10
  private bool isFinished = false;
11
11
  private string questId;
@@ -32,6 +32,7 @@ namespace jeanf.questsystem
32
32
 
33
33
  if (isUsingIntroTimeline && timeline)
34
34
  {
35
+ if(isDebug) Debug.Log($"sending trigger to timeline: {timeline.name}, triggerValue: true");
35
36
  _timelineTriggerEventChannelSo.RaiseEvent(timeline, true);
36
37
  }
37
38
  }
@@ -47,7 +48,8 @@ namespace jeanf.questsystem
47
48
 
48
49
  if (isUsingIntroTimeline && timeline)
49
50
  {
50
- _timelineTriggerEventChannelSo.RaiseEvent(timeline, false);
51
+ if(isDebug) Debug.Log($"sending trigger to timeline: {timeline.name}, triggerValue: false");
52
+ //_timelineTriggerEventChannelSo.RaiseEvent(timeline, false);
51
53
  }
52
54
  }
53
55
  }
@@ -59,5 +61,6 @@ namespace jeanf.questsystem
59
61
  }
60
62
 
61
63
  protected abstract void SetQuestStepState(string state);
64
+ public bool isDebug { get; set; }
62
65
  }
63
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"fr.jeanf.questsystem",
3
- "version":"0.0.10",
3
+ "version":"0.0.12",
4
4
  "displayName":"Quest system",
5
5
  "description":"This package uses Scriptable Objects to define quests.",
6
6
  "unity": "2021.3",