fr.jeanf.questsystem 0.0.18 → 0.0.20
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.
- package/Runtime/Quests/Quest_StethoscopeCheck.prefab +4 -1
- package/Runtime/Quests/Quest_VisitAllPlaces.prefab +5 -0
- package/Runtime/Quests/Quest_VisitPlaces.prefab +5 -0
- package/Runtime/Scripts/Core/QuestStep.cs +10 -3
- package/Runtime/Scripts/Tooltips/QuestTooltipSO.cs +21 -0
- package/Runtime/Scripts/Tooltips/QuestTooltipSO.cs.meta +11 -0
- package/Runtime/Scripts/Tooltips.meta +8 -0
- package/package.json +1 -1
|
@@ -170,4 +170,7 @@ MonoBehaviour:
|
|
|
170
170
|
questInfoForPoint: {fileID: 11400000, guid: b7b6381ae7b9c2244862b31a1ce5b2f5, type: 2}
|
|
171
171
|
progress: 0
|
|
172
172
|
clearToStart: 0
|
|
173
|
-
|
|
173
|
+
QuestProgress: {fileID: 11400000, guid: d6b05e1957994c8449fb72e849a2a3d6, type: 2}
|
|
174
|
+
StartQuestEventChannel: {fileID: 11400000, guid: c510c1e4d26428740b3e329cca98e5d1,
|
|
175
|
+
type: 2}
|
|
176
|
+
requirementCheck: {fileID: 11400000, guid: a4dae407f780f974abbf43c280515876, type: 2}
|
|
@@ -166,6 +166,11 @@ MonoBehaviour:
|
|
|
166
166
|
m_Name:
|
|
167
167
|
m_EditorClassIdentifier:
|
|
168
168
|
_isDebug: 1
|
|
169
|
+
_startQuestOnEnable: 0
|
|
169
170
|
questInfoForPoint: {fileID: 11400000, guid: ee924c4edf671a44b8585cc39cc20e7a, type: 2}
|
|
170
171
|
progress: 0
|
|
171
172
|
clearToStart: 0
|
|
173
|
+
QuestProgress: {fileID: 11400000, guid: d6b05e1957994c8449fb72e849a2a3d6, type: 2}
|
|
174
|
+
StartQuestEventChannel: {fileID: 11400000, guid: c510c1e4d26428740b3e329cca98e5d1,
|
|
175
|
+
type: 2}
|
|
176
|
+
requirementCheck: {fileID: 11400000, guid: a4dae407f780f974abbf43c280515876, type: 2}
|
|
@@ -166,6 +166,11 @@ MonoBehaviour:
|
|
|
166
166
|
m_Name:
|
|
167
167
|
m_EditorClassIdentifier:
|
|
168
168
|
_isDebug: 1
|
|
169
|
+
_startQuestOnEnable: 0
|
|
169
170
|
questInfoForPoint: {fileID: 11400000, guid: a249a914e47bba041b17cb82c0fd3105, type: 2}
|
|
170
171
|
progress: 0
|
|
171
172
|
clearToStart: 0
|
|
173
|
+
QuestProgress: {fileID: 11400000, guid: d6b05e1957994c8449fb72e849a2a3d6, type: 2}
|
|
174
|
+
StartQuestEventChannel: {fileID: 11400000, guid: c510c1e4d26428740b3e329cca98e5d1,
|
|
175
|
+
type: 2}
|
|
176
|
+
requirementCheck: {fileID: 11400000, guid: a4dae407f780f974abbf43c280515876, type: 2}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
using jeanf.EventSystem;
|
|
2
2
|
using jeanf.propertyDrawer ;
|
|
3
|
+
using jeanf.tooltip;
|
|
3
4
|
using UnityEngine;
|
|
4
5
|
using UnityEngine.Playables;
|
|
5
6
|
|
|
@@ -21,8 +22,12 @@ namespace jeanf.questsystem
|
|
|
21
22
|
public PlayableAsset timeline;
|
|
22
23
|
|
|
23
24
|
|
|
24
|
-
[Header("
|
|
25
|
+
[Header("Event Channels")]
|
|
25
26
|
[SerializeField] private StringEventChannelSO sendQuestStepTooltip;
|
|
27
|
+
|
|
28
|
+
[Header("Quest Tooltip")]
|
|
29
|
+
[SerializeField] private QuestTooltipSO questTooltipSO;
|
|
30
|
+
|
|
26
31
|
public void InitializeQuestStep(string questId, int stepIndex, string questStepState)
|
|
27
32
|
{
|
|
28
33
|
this.questId = questId;
|
|
@@ -68,8 +73,10 @@ namespace jeanf.questsystem
|
|
|
68
73
|
|
|
69
74
|
protected void DisplayActiveQuestStep()
|
|
70
75
|
{
|
|
71
|
-
|
|
72
|
-
|
|
76
|
+
if (questTooltipSO != null)
|
|
77
|
+
{
|
|
78
|
+
sendQuestStepTooltip.RaiseEvent(questTooltipSO.Tooltip);
|
|
79
|
+
}
|
|
73
80
|
}
|
|
74
81
|
protected abstract void SetQuestStepState(string state);
|
|
75
82
|
public bool isDebug { get; set; }
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
using System.Collections;
|
|
2
|
+
using System.Collections.Generic;
|
|
3
|
+
using UnityEngine;
|
|
4
|
+
using jeanf.tooltip;
|
|
5
|
+
|
|
6
|
+
namespace jeanf.questsystem
|
|
7
|
+
{
|
|
8
|
+
[CreateAssetMenu(fileName = "ControlsTooltipSO", menuName = "Tooltips/QuestTooltipSO", order = 1)]
|
|
9
|
+
public class QuestTooltipSO : TooltipSO
|
|
10
|
+
{
|
|
11
|
+
public string tooltipToSend;
|
|
12
|
+
public override string Tooltip
|
|
13
|
+
{
|
|
14
|
+
get
|
|
15
|
+
{
|
|
16
|
+
return tooltipToSend;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|