fr.jeanf.questsystem 0.0.10 → 0.0.13
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;
|
|
@@ -18,7 +18,7 @@ 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
|
-
|
|
21
|
+
public PlayableAsset timeline;
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
public void InitializeQuestStep(string questId, int stepIndex, string questStepState)
|
|
@@ -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
|
-
|
|
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
|
}
|