fr.jeanf.questsystem 0.0.41 → 0.0.42
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.
|
@@ -105,10 +105,9 @@ namespace jeanf.questsystem
|
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
if (stepMap.ContainsKey(id))
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
108
|
+
if (!stepMap.ContainsKey(id)) return;
|
|
109
|
+
|
|
110
|
+
if(!activeSteps.ContainsKey(id)) activeSteps.Add(id,Instantiate(stepMap[id], this.transform, true));
|
|
112
111
|
}
|
|
113
112
|
|
|
114
113
|
public void DestroyQuestStep(string id)
|
|
@@ -56,7 +56,7 @@ namespace jeanf.questsystem
|
|
|
56
56
|
public void InitializeQuestStep()
|
|
57
57
|
{
|
|
58
58
|
// failsafe to avoid lauching the same step more than once at a time.
|
|
59
|
-
|
|
59
|
+
if (stepStatus == QuestStepStatus.Active) return;
|
|
60
60
|
Debug.Log($"Initializing quest with questId: {questId}");
|
|
61
61
|
|
|
62
62
|
stepStatus = QuestStepStatus.Active;
|