fr.jeanf.questsystem 0.0.13 → 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.
|
@@ -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
|
}
|