fr.jeanf.questsystem 0.0.12 → 0.0.14

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.
@@ -18,9 +18,11 @@ namespace jeanf.questsystem
18
18
  [DrawIf("isUsingIntroTimeline", true, ComparisonType.Equals, DisablingType.DontDraw)]
19
19
  [SerializeField] private TimelineTriggerEventChannelSO _timelineTriggerEventChannelSo;
20
20
  [DrawIf("isUsingIntroTimeline", true, ComparisonType.Equals, DisablingType.DontDraw)]
21
- [SerializeField] private PlayableAsset timeline;
21
+ public PlayableAsset timeline;
22
22
 
23
23
 
24
+ [Header("Events")]
25
+ [SerializeField] private StringEventChannelSO sendQuestStepTooltip;
24
26
  public void InitializeQuestStep(string questId, int stepIndex, string questStepState)
25
27
  {
26
28
  this.questId = questId;
@@ -28,8 +30,9 @@ namespace jeanf.questsystem
28
30
  if (questStepState != null && questStepState != "")
29
31
  {
30
32
  SetQuestStepState(questStepState);
33
+
31
34
  }
32
-
35
+ DisplayActiveQuestStep();
33
36
  if (isUsingIntroTimeline && timeline)
34
37
  {
35
38
  if(isDebug) Debug.Log($"sending trigger to timeline: {timeline.name}, triggerValue: true");
@@ -60,6 +63,11 @@ namespace jeanf.questsystem
60
63
  new QuestStepState(newState));
61
64
  }
62
65
 
66
+ protected void DisplayActiveQuestStep()
67
+ {
68
+ sendQuestStepTooltip.RaiseEvent("questStepToSend");
69
+
70
+ }
63
71
  protected abstract void SetQuestStepState(string state);
64
72
  public bool isDebug { get; set; }
65
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"fr.jeanf.questsystem",
3
- "version":"0.0.12",
3
+ "version":"0.0.14",
4
4
  "displayName":"Quest system",
5
5
  "description":"This package uses Scriptable Objects to define quests.",
6
6
  "unity": "2021.3",