fr.jeanf.questsystem 0.0.13 → 0.0.15

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.
@@ -44,13 +44,13 @@ namespace jeanf.questsystem
44
44
  public void OnValidate()
45
45
  {
46
46
  #if UNITY_EDITOR
47
- ValididtyCheck();
47
+ ValidityCheck();
48
48
  #endif
49
49
 
50
50
  questId = questInfoForPoint.id;
51
51
  }
52
52
 
53
- private void ValididtyCheck()
53
+ private void ValidityCheck()
54
54
  {
55
55
  const string searching = "attempting to find";
56
56
  const string _ = "Quests/Channels"; // search target
@@ -21,6 +21,8 @@ namespace jeanf.questsystem
21
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.13",
3
+ "version":"0.0.15",
4
4
  "displayName":"Quest system",
5
5
  "description":"This package uses Scriptable Objects to define quests.",
6
6
  "unity": "2021.3",